Repository navigation
Conversation
|
Thanks for the contribution. This PR still needs the requested real-behavior proof, and the branch has been idle since that ask. Close this stale PR: it still lacks real configured-ACP behavior proof and retains a P1 path that can dispatch a second ACP turn after a timed-out hook is reported as unhandled. So I’m closing this for now to keep the review queue honest. Please reopen or open a fresh PR with real-behavior proof (a live run, logs, or a reproducible validation transcript) and it will be reviewed again. Review detailsBest possible solution: If revived, reimplement the repair in current route selection with an explicit hook outcome that permits fallback only after a completed decline, then prove one inbound ACP turn yields exactly one runtime turn and reply. Do we have a high-confidence way to reproduce the issue? No live current-main reproduction was run, but source establishes that an unhandled hook falls through and that a timeout is indistinguishable from a completed decline to this branch. Is this the best way to solve the issue? No. The fallback is plausible for completed declines but is unsafe after timeout; an outcome-aware current-main route handoff is the narrower safe repair. Security review: Security review cleared: The diff changes ACP routing and tests only; no new dependency, credential, permission, or supply-chain surface was found. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 1011b4102fd1. |
0d8143f to
2950355
Compare
2950355 to
5548a27
Compare
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Fixes #97186.
Configured
type: "acp"bindings could finish session initialization but still lose the first inbound turn when noreply_dispatchhook claimed the ACP session. The result matched the report: session created, backend process spawned, but nosystemSent, no transcript, and no visible reply.What Problem This Solves
Telegram-style ACP sessions can be routed to a configured ACP target session before any reply-dispatch hook claims the event. When that hook path declines the event, the first user turn is silently dropped instead of being dispatched to the ACP runtime, so the conversation never produces a visible reply.
What changed
reply_dispatchevent once and reuse it.runTurn()even when the hook declines to claim it.Why this fixes the bug
Configured ACP bindings already rewrite the inbound session key to the ACP target session. The missing piece was a core fallback for that target when hook wiring was absent or declined the event. With this change, ACP-bound sessions no longer depend on the hook path to process the first prompt.
Evidence
node scripts/run-vitest.mjs src/auto-reply/reply/dispatch-from-config.test.tsnode scripts/run-vitest.mjs src/auto-reply/reply/dispatch-from-config.reply-dispatch.test.tspnpm_config_verify_deps_before_run=false pnpm build