Commit 617b685
committed
fix(agents): scope direct-text fallback to no_active_run/compacting wake failures
ClawSweeper review of #94656 flagged that the proactive direct-text
fallback fired for every activeRequesterWakeFailed, which broke the
existing Telegram requester-handoff test that uses reason=not_streaming
and expects callGateway to be invoked.
Scope the fallback to issue #92076's failure modes only — no_active_run
and compacting. Other queue reasons (not_streaming, source_reply_delivery_mode_mismatch,
transcript_commit_wait_unsupported, runtime_rejected) keep the existing
requester-agent handoff path.
No-op for the proactive fallback's behavior in issue #92076's scenario
(no_active_run still triggers the direct-text path; compacting now does
too). The standalone repro at scripts/repro/issue-92076-subagent-fallback.mts
continues to pass.1 parent 37ce11b commit 617b685
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1406 | 1406 | | |
1407 | 1407 | | |
1408 | 1408 | | |
1409 | | - | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
1410 | 1414 | | |
1411 | 1415 | | |
1412 | 1416 | | |
1413 | | - | |
| 1417 | + | |
| 1418 | + | |
1414 | 1419 | | |
1415 | 1420 | | |
1416 | 1421 | | |
| |||
0 commit comments