fix: preserve revert consistency - #46974
Open
CasualDeveloper wants to merge 1 commit into
Open
CasualDeveloper wants to merge 1 commit into
CasualDeveloper wants to merge 1 commit into
Conversation
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Contributor
|
The following comment was made by an LLM, it may be inaccurate: The search found PR #42461 "fix: make revert boundaries chronological" which is the related PR mentioned in the current PR's description as being superseded. This is expected since PR #46974 explicitly states it "Supersedes #42461" and folds in that fix. No other duplicate or competing PRs were found that are addressing the same revert consistency and session prompt ordering issue. No duplicate PRs found |
CasualDeveloper
force-pushed
the
fix/37751-revert-consistency
branch
2 times, most recently
from
September 5, 2026 17:32
7c3cb99 to
c0ce754
Compare
CasualDeveloper
force-pushed
the
fix/37751-revert-consistency
branch
2 times, most recently
from
September 10, 2026 17:11
72d9544 to
f9b46da
Compare
3 of 6 tasks
CasualDeveloper
force-pushed
the
fix/37751-revert-consistency
branch
from
September 15, 2026 14:12
f9b46da to
6dfd653
Compare
CasualDeveloper
force-pushed
the
fix/37751-revert-consistency
branch
2 times, most recently
from
September 28, 2026 04:11
2f8698b to
0e247a4
Compare
Keep execution parked while a revert is staged and serialize revert mutations with prompt and synthetic admission. Commit replacement prompts and their optional context atomically with the revert, retaining queued input before its chronological boundary. Keep projected reads in SessionStore and scope plugin setup and hook admission bypasses to their active invocation. Serialize client mutations while preserving optimistic display and same-ID retries; resolve undo boundaries by transcript position rather than message ID. Closes anomalyco#37751, anomalyco#44357
CasualDeveloper
force-pushed
the
fix/37751-revert-consistency
branch
from
October 1, 2026 02:10
0e247a4 to
90b23ac
Compare
This branch has not been deployed
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.
Issue for this PR
Closes #37751, #44357
Supersedes #37752, #42461
Type of change
What does this PR do?
I serialize revert changes and prompt admission per session, and keep execution parked while a revert is staged. A replacement prompt and its optional synthetic context commit atomically with the revert. Pending input before the chronological boundary is retained.
The clients preserve optimistic input across revert events, order agent/model changes with admission, retry once with the same message ID, and choose undo boundaries by transcript position. Image loading stays inside the existing session's admission reservation. Plugin setup and prompt hooks get invocation-scoped synthetic admission to avoid deadlocking the waiting prompt.
session.promptgains optionalcontext, for steer delivery only. Required code generation also refreshes stale upstream API snapshots.How did you verify your code works?
Bun 1.4.2, based on
origin/v2at5556ad563d:bun run check, generated-file checks, the website build, and Effect lint checks passed.5556ad563d; the additional VCS timeout passes in isolation on both trees. Client: 178 pass and four contract/import-boundary failures also reproduced on the clean base.Coverage includes staged resume/wake, atomic replacement failure, concurrent undo/admission, image submission ordering, same-ID retries with browser comments, plugin-hook reentrancy, pending-input preservation, and paginated boundaries.
Screenshots / recordings
Logic change; existing UI exercised in production-browser tests.
Checklist
Process: human-directed and reviewed, with agentic assistance from Anthropic/Claude and OpenAI/ChatGPT.