Persist local shared-conversation continuations - #944
Closed
Neonforge98 wants to merge 1 commit into
Closed
Conversation
This was referenced Aug 25, 2026
Collaborator
Author
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.
Problem
Shared conversation member turns still created a disposable local runner per send and rebuilt prompt context from the whole plane. That discarded local agent/tool state, repeatedly injected old shared rows, and left owner/member execution with no durable plane-read watermark.
Solution
Persist one local continuation per signed-in cloud identity, organization, and root session. Reuse the canonical TurnDispatchService for exact intent dispatch/finality, fetch only rows after a monotonic non-negative plane cursor, keep independent owner and member cursors, serialize a conversation across app windows with Web Locks, and atomically register each hidden runner with its continuation. Roll only on assigned-agent change, bootstrap mismatch, rejected resume, or failed/cancelled execution. Live overlay and plane tail extraction are fenced to the exact turn intent.
Team Chat remains ordinary human chat and does not enter the Agent conversation plane. The existing capability gate and legacy fork fallback are unchanged; no cloud schema or RPC contract changes are required.
Potential risks
A browser renderer without Web Locks fails closed for member execution instead of risking concurrent sends into one continuation. Prompt context is intentionally bounded to the newest 60 plane rows while the cursor still traverses to the authoritative head. A missing or rejected local runner rolls to a fresh setup and may ask for workspace/model again.
Verification