Repository navigation
fix(agents): preserve ACP requester agent overrides - #55723
RichardCao wants to merge 1 commit into
Conversation
Greptile SummaryThis PR fixes a gap where
Confidence Score: 5/5Safe to merge — minimal, targeted fix that mirrors an already-validated pattern from the subagent path. The change is a pure gap-fill: requesterAgentIdOverride was already correctly handled in subagent-spawn.ts and just wasn't wired into the ACP path. The implementation follows the exact same override-then-fallback pattern used in subagent-spawn.ts:391. Both callsites in acp-spawn.ts are updated consistently, and the two new tests cover the two distinct behaviors being fixed. No logic errors or unintended side-effects were found. No files require special attention.
|
| Filename | Overview |
|---|---|
| src/agents/tools/sessions-spawn-tool.ts | Passes requesterAgentIdOverride into the ACP context; was already present for subagent path. |
| src/agents/acp-spawn.ts | Adds requesterAgentIdOverride to SpawnAcpContext and applies override-first resolution in both heartbeat and requester-state helpers. |
| src/agents/tools/sessions-spawn-tool.test.ts | Adds requesterAgentIdOverride to the ACP routing test to verify tool-layer passthrough. |
| src/agents/acp-spawn.test.ts | Adds regression test verifying that the override correctly gates implicit parent-stream relay when the overridden agent lacks a heartbeat config. |
Reviews (1): Last reviewed commit: "fix(agents): preserve ACP requester agen..." | Re-trigger Greptile
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep open. Current main and v2026.6.10 only partially preserve ACP requester overrides: the tool and spawn entry point carry the override, but heartbeat eligibility still derives from the parent session key, so this PR remains useful while needing a refresh and real behavior proof before merge. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes, source-level. Current main resolves the ACP requester id from Is this the best way to solve the issue? Yes in direction. ACP spawn requester-state is the right boundary, but the mergeable current-main version should use the already-resolved requester identity rather than landing the stale branch without refresh. Security review: Security review cleared: Security review cleared: the diff is limited to internal ACP requester routing and tests, with no dependency, lockfile, CI, credential, install, or external code-execution changes. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 843ad143647e. |
3281817 to
699bc97
Compare
|
Refreshed this PR onto latest New head: What changed:
Review:
Verification:
|
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
699bc97 to
3fee03d
Compare
|
ClawSweeper applied the proposed close for this PR.
|
Summary
requesterAgentIdOverridethrough the ACPsessions_spawnpathTesting