Skip to content
This repository was archived by the owner on Aug 21, 2026. It is now read-only.

主管子图有个 or True,会把任何异常都"静默吞掉"而导致提前收工 - #333

Closed
Weather-Report (WeatherCore) wants to merge 3 commits into
langchain-ai:mainfrom
WeatherCore:main
Closed

主管子图有个 or True,会把任何异常都"静默吞掉"而导致提前收工#333
Weather-Report (WeatherCore) wants to merge 3 commits into
langchain-ai:mainfrom
WeatherCore:main

Conversation

@WeatherCore

Copy link
Copy Markdown
except Exception as e:
    if is_token_limit_exceeded(e, configurable.research_model) or True:   # ← or True 恒为真
        return Command(goto=END, ...)

本意是"只有 token 超限才提前结束",现在变成了任何异常(限流 429、网络抖动、某一个研究员失败)都会立刻终止整个研究阶段,然后照常花tokens生成一份残缺报告。后果:质量突然变差但无报错、真实错误被掩盖。修复:删掉 or True

@WeatherCore Weather-Report (WeatherCore) closed this by deleting the head repository Aug 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant