You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
环境
0.2.2-rc.1(npm latest),Windows 11run_code);@deepseek-ai/dsh-ptc-runtime-node默认timeoutMs: 120000、maxTimeoutMs: 600000@deepseek-ai/dsh-experimental-tool-agent-team0.2.2-rc.1;模型 deepseek-flash~/.dsh/sessions/.../session.v4.jsonl.zstd,下文为脱敏摘录)摘要
wait_agent的timeout_ms允许 10s–1h,但它在run_code内是嵌套调用,受程序执行期限约束(默认 120000ms,上限 600000ms)。当等待超时 >= 剩余程序预算时,先到期的是程序执行期限:嵌套等待被丢弃,模型只拿到通用的Error: code run failed (timeout): execution deadline reached (120000ms),拿不到{"timedOut": true}这个正常结果。复现
run_code里执行:Error: code run failed (timeout): execution deadline reached (120000ms),而不是{"timedOut": true}。真实会话证据(脱敏)
tool/call run_code(code 为wait_agent({timeout_ms:120000}))→tool/result:code run failed (timeout): execution deadline reached (120000ms)。run_code的timeoutMs抬到 wait + 余量(如 wait 150000 / budget 200000;wait 240000 / budget 300000)。为什么这是个问题
timeout_ms == 剩余预算是必然碰撞,不是竞态。wait_agent上限 1h >run_code上限 10min;即使把timeoutMs拉到最大,wait 的上限也永远无法兑现,而两个工具的描述都没有写这层关系。建议
wait_agent timeout_ms exceeds the remaining run_code budget; lower timeout_ms or raise run_code timeoutMs,而不是整个程序报笼统 deadline。{"timedOut": true}。wait_agent的参数描述和run_code的timeoutMs说明里点明"预算包含嵌套 wait_agent 的时间"。相关讨论
All reactions