Repository navigation
fix(cli): keep empty agent replies silent - #76427
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: yes. Source inspection on current main shows Gateway empty payloads log the summary/fallback and embedded delivery empty payloads log Next step before merge Security Review detailsBest possible solution: Land the guarded empty-reply suppression with the regression tests and changelog once maintainer review and exact-head validation are satisfied. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection on current main shows Gateway empty payloads log the summary/fallback and embedded delivery empty payloads log Is this the best way to solve the issue? Yes. The latest PR narrows Gateway silence to successful empty replies, preserves non-ok terminal summaries, and removes the misleading embedded delivery fallback for intentional empty payloads. Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 140c274335d6. |
efa3c92 to
e28e678
Compare
What changed
No reply from agent.NO_REPLYturns, and direct delivery empty payloads.Why
Channel-visible agents can legitimately send their user-facing output through tools such as
messageand then finish with no assistant payload. Treating that as a fallback text reply produces misleading output and can make session/RPC callers look like they responded incorrectly.Validation
pnpm test src/commands/agent-via-gateway.test.ts src/commands/agent.delivery.test.ts src/commands/agent.acp.test.tspnpm exec oxfmt --check --threads=1 CHANGELOG.md src/commands/agent-via-gateway.ts src/agents/command/delivery.ts src/commands/agent-via-gateway.test.ts src/commands/agent.delivery.test.ts src/commands/agent.acp.test.tsgit diff --checkNotes
pnpm changed:lanes --jsonselected core + coreTests.pnpm check:changedwas not run because Testbox is not authenticated here (blacksmith auth loginrequired), and repo policy says broad changed gates should run in Testbox on maintainer machines.