refactor(conversations): track continuation episodes - #957
Closed
Neonforge98 wants to merge 1 commit into
Closed
Conversation
Neonforge98
force-pushed
the
codex/conversation-continuation-episodes
branch
from
August 25, 2026 11:08
646745e to
737bc8c
Compare
Collaborator
Author
|
Closing this experimental continuation stack after architecture review. ORG2 will reuse the existing full Team Session continuation path instead of shipping a parallel checkpoint/materializer system. The branch is preserved for audit; nothing from this stack should be merged. |
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
Persistent Work Item continuations only kept one mutable pointer. A runtime roll erased why it happened, old and new desktop windows could overwrite each other's storage format, accepted turns could be acknowledged after a failed persistence write, and live overlays were keyed only by root session id instead of organization plus root.
Solution
Potential risks
sessions.db. This PR prevents silent write failure but cannot recover storage deleted after a successful write or provide a cross-window transaction.Verification
pnpm exec vitest run src/features/Org2Cloud/SessionConversation/conversationContinuation.test.ts src/features/Org2Cloud/SessionConversation/activeConversationRunnersAtom.test.ts src/features/Org2Cloud/SessionConversation/conversationExecutionStore.test.ts src/features/Org2Cloud/SessionConversation/conversationTurnRunner.test.ts src/features/Org2Cloud/SessionConversation/workItemConversationTurnBridge.test.ts src/features/Org2Cloud/SessionConversation/cloudConversationRuntime.test.ts(54 tests passed)pnpm exec eslinton all 13 changed TypeScript filespnpm exec tsc --noEmitStack
Base: #951 (
codex/work-item-continuation-cli-account)This is the episode-lineage and correctness foundation for native checkpoint/rebase and encrypted device handoff follow-up PRs.