Repository navigation
fix(acp): recover queued turns and keep metadata readable - #3988
Merged
Merged
Conversation
added 2 commits
November 18, 2026 14:17
Restore the running ACP turn and drain queued input after frontend reload. Allocate a storage index for replayed turns so the original response is saved. Serve session metadata from a watch snapshot while a request owns the protocol receiver. Cover live updates, queue ordering and reconnects in the controlled ACP fixture.
Return session execution state and the shared event projection from the host effects port. Convert protocol-specific snapshots in the production adapter so the session application stays independent of the ACP crate.
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type and Areas
Bug fix. ACP client, Desktop session restore and Web UI queue handling.
Verification
node tests/e2e/scripts/run-acp-queue-recovery.mjspassed all 10 scenarios on local macOS Desktop with a controlled Agent over real ACP stdio. It verifies reload recovery, durable output, queue ordering, metadata updates, cancellation, duplicate admission and reconnect.Reviewer Notes
The restore response adds an optional ACP execution-authority marker. The metadata snapshot stays in memory and the protocol receiver remains serialized. AI-assisted implementation and verification.