Repository navigation
Conversation
Co-authored-by: OpenAI Codex <noreply@openai.com>
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.
Exited sessions now offer an exact saved-history preview before explicit resume or fork, while retaining their transcript and unsent draft. Recovery refreshes archive metadata, refuses unrelated history and ignores lookups that finish after navigation.
Part of #4. Closes #90.
Verified locally with the repository's pinned Node 22 toolchain.
bun install --frozen-lockfilepassed.bun run lintpassed.bun run typecheckpassed.bun run test:unitpassed, 114 tests.mise exec -- bun run test:integrationpassed, 130 tests. The first invocation outside mise used Node 26 and failed six existing Settings tests because its localStorage global was unavailable; the pinned toolchain passes.mise run buildpassed, including lint, typecheck, unit/component tests and bundling.git diff --checkpassed.The nine new component cases verify exact-archive preview, separate draft retention, missing or wrong-root archives, lookup and read failures, delayed results after root/view/tab navigation, and a missing runtime archive path.
Local
bun run test:e2ewas blocked before app launch by a missingElectron Framework.framework/Electron Frameworklibrary. All 77 Electron tests were skipped. Hosted macOS Electron checks and screenshot capture are pending; this PR stays draft until that proof is attached.Three new Electron cases cover native desktop and minimum-window recovery, keyboard preview without a runtime launch or archive mutation, missing-archive feedback, and resuming the exact archive only after explicit continuation. Captures are written to
.tmp/proof/and uploaded fromtest-results/session-activity/by the existing CI workflow.Recovery depends on the runtime providing an archive path and Pi successfully saving that archive. There is no automatic restart or archive repair; the existing saved-history validation and continuation limits still apply. A separate saved-history draft remains separate from the unsent draft in the exited tab.