Repository navigation
fix(agents): keep delayed sessions_send replies alive - #76484
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: yes. from source inspection. Current main returns from the sessions_send timeout branch before launching A2A follow-up, and the PR adds a focused mock regression for the soft wait-window timeout path; tests were not executed in this read-only review. Next step before merge Security Review detailsBest possible solution: Review, validate, and land this PR or a maintainer-approved equivalent so soft wait-window timeouts keep the delayed sessions_send A2A delivery path alive without converting real terminal run timeouts into background work. Do we have a high-confidence way to reproduce the issue? Yes from source inspection. Current main returns from the sessions_send timeout branch before launching A2A follow-up, and the PR adds a focused mock regression for the soft wait-window timeout path; tests were not executed in this read-only review. Is this the best way to solve the issue? Yes. The patch stays inside the existing sessions_send/A2A and run-wait seams, uses current agent.wait lifecycle metadata to separate soft waits from terminal timeouts, and adds stale-reply baseline coverage. Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against e27b7c2d7446. |
cce67e6 to
3d87e7b
Compare
Summary
sessions_sendA2A delivery alive after softagent.waitwindow timeouts by returningacceptedwith pending delivery and launching the delayed requester follow-up.status: "timeout"so real run failures do not become accepted background work.Fixes #76443.
Investigation
Checked the requested adjacent refs before publishing:
mainstill returns before launching A2A on a soft wait-window timeout, and the existing A2A helper can write the requester-session reply when launched.agent-via-gatewayand command delivery, notsessions_send, and has a separate review blocker around preserving non-ok gateway summaries.bash-tools.execand docs, notsessions_send, and remains a separate exec boundary fix.sessions_sendA2A timeout handling.Validation
pnpm test src/agents/openclaw-tools.sessions.test.ts src/agents/tools/sessions-send-tool.a2a.test.tsOPENCLAW_TESTBOX=1 pnpm check:changed