把 subagent 超时显式标记为 timeout,避免误报 completed successfully
针对子代理超时被误判成功的问题,社区提供了最小变更修复路径,适合先提升可观测性再做重试编排。
GITHUBDiscovered 2026-02-12Author dario-github
Prerequisites
- You rely on subagent completion status for retries, alerts, or SLA dashboards.
- Current logs occasionally show success messages despite obvious timeout symptoms.
Steps
- Reproduce one controlled timeout and capture lifecycle events + parent announce output.
- Upgrade to a build containing timeout-status fix in subagent lifecycle handling.
- Update retry logic to trigger on explicit timeout status instead of text matching.
- Add timeout counters to dashboards for trend tracking.
Commands
openclaw gateway statusopenclaw helpgit log --oneline -n 5Verify
Timed-out subagents are reported as timeout, and parent workflow no longer treats them as successful completions.
Caveats
- PR discussion notes possible additional path in agent.wait requiring cross-check(需验证).
- Status fixes improve observability but do not by themselves reduce timeout frequency.
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗