Repository navigation
Add persisted session upgrade fixture gate - #7007
Closed
brennanb2025 wants to merge 1 commit into
Closed
brennanb2025 wants to merge 1 commit into
brennanb2025 wants to merge 1 commit into
Conversation
Co-authored-by: Orca <[email protected]>
|
Ready to review this PR? Stage has broken it down into 3 individual chapters for you:
Chapters generated by Stage for commit 69762e1 on Jul 1, 2026 8:24am UTC. |
This was referenced Jul 1, 2026
Contributor
Author
|
Closing as superseded: a merged PR already covers this change. Main config/reliability-gates.jsonc:11363 already registers gate startup-upgrade.persisted-session-corpus, backed by a stronger Electron e2e upgrade journey (tests/e2e/persisted-session-production-upgrade.spec.ts) added by #17289 (Stale-PR cleanup 2026-10-20, approved by Brennan. Reopen if something here is still missing on main.) |
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
workspaceSessionfixture with documented provenance for the persisted-session upgrade corpus.startup-upgrade.persisted-session-corpuscommand inconfig/reliability-gates.jsoncwith updated performance evidence and known gaps; maturity remainsexperimental.ELI5
Older versions of Orca saved workspace/session data in slightly different shapes. When a newer Orca opens that old data, it should restore the real tabs and sessions instead of making blank tabs, duplicates, or launching things too early. This PR adds an old saved-session fixture and a test that proves the upgrade path still restores it safely.
Why We Need This
This covers the startup/upgrade persisted-session class. Users can open Orca with workspace/session data saved by older versions, and that data must not produce blank replacement tabs, duplicate tabs, lost PTY wake hints, or eager startup spawning.
Product Code vs Gate Coverage
This PR is fixture/gate coverage, not a runtime upgrade-path change. It adds a legacy saved-session fixture and focused hydration tests against the current schema/store path. The manifest keeps full Electron boot, second restart, SSH, and WSL upgrade coverage as explicit follow-up gaps.
Merge Order
Requires #7001 first because this PR updates the reliability gate manifest introduced there.
After #7001 lands, this PR can merge independently of #7004, #7005, #7006, and #7008. No other child PR must merge before this one. Later child PRs may need a normal manifest rebase if this one lands first.
Validation
pnpm run check:reliability-gatespnpm exec vitest run --config config/vitest.config.ts src/renderer/src/store/slices/persisted-session-upgrade-fixture.test.ts src/shared/workspace-session-schema.test.tspnpm exec oxlint src/renderer/src/store/slices/persisted-session-upgrade-fixture.test.tspnpm run typecheck:webgit diff --checkResidual Risks
Made with Orca 🐋
Post-PR Stabilization