Repository navigation
fix(agents): preserve ACP requester agent overrides - #55708
RichardCao wants to merge 1 commit into
Conversation
|
Closing this PR because the author has more than 10 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit. |
Greptile SummaryThis PR fixes a bug where Confidence Score: 5/5Safe to merge — targeted two-site fix with no behavioural regressions and new regression coverage added. All changed logic is correct: the override is applied with a ?? fallback in both heartbeat-eligibility sites, and the normalizeOptionalAgentId guard handles empty/null gracefully. The hasSessionLocalHeartbeatRelayRoute store-path lookup uses the effective requesterAgentId, which is correct given the documented intent of the override (cron/hook sessions where the session key already belongs to the override agent). Tests directly cover the new passthrough and the eligibility path. No P0 or P1 issues found. No files require special attention.
|
| Filename | Overview |
|---|---|
| src/agents/acp-spawn.ts | Adds requesterAgentIdOverride to SpawnAcpContext and threads it through heartbeat eligibility checks with correct fallback logic. |
| src/agents/tools/sessions-spawn-tool.ts | Forwards requesterAgentIdOverride into the spawnAcpDirect context, matching the existing subagent path. |
| src/agents/acp-spawn.test.ts | Adds regression test verifying override agent identity suppresses implicit parent-stream relay when override agent lacks heartbeat config. |
| src/agents/tools/sessions-spawn-tool.test.ts | Adds assertion confirming requesterAgentIdOverride is passed through to spawnAcpDirect on the ACP runtime path. |
Reviews (1): Last reviewed commit: "fix(agents): preserve ACP requester agen..." | Re-trigger Greptile
Summary
requesterAgentIdOverridethrough the ACPsessions_spawnpathTesting