feat: add multi-workspace persistence#410
Merged
Merged
Conversation
Replace the fixed current aggregate with StoredWorkspaceV2 records keyed by immutable IDs and unique stable URL keys. Add collection repository operations, separate last-used metadata with timestamp fallback, additive imports, active-ID mutations, and key-based Dashboard routing. Reconcile the roadmap, ADRs, README, and changelog; extend IndexedDB, application, routing, import, and cross-tab coverage. Co-Authored-By: OpenAI Codex <noreply@openai.com> Claude-Session: unavailable (OpenAI Codex)
Prevent workspace-scoped query IDs from rebinding existing editor tabs, and defer last-used Dashboard metadata until the requested Dashboard resolves. Co-Authored-By: OpenAI Codex <noreply@openai.com> Claude-Session: unavailable (OpenAI Codex)
Make the ship merge gate launch npm run local and remove stale references to the retired legacy workspace migration. Co-Authored-By: OpenAI Codex <noreply@openai.com> Claude-Session: unavailable (OpenAI Codex)
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.
What & why
Closes #406.
Replace the fixed
currentaggregate with a real local workspace collection.StoredWorkspaceV2separates immutable opaqueid, immutable stable URLkey, and mutable displayname; IndexedDB stores one validated record per workspace with a unique key index and separate last-used metadata.The repository now lists summaries and loads, creates, replaces, and deletes individual workspaces. Implicit startup uses the persisted last-used key, then injected-clock
lastOpenedAtordering when that preference is invalid; explicit?ws=never falls back. Workspace import creates a fresh local workspace, active mutations reload by immutable ID, and Dashboard URLs resolve stable keys. Corrupt records remain fail-closed and reserve their keys.The roadmap #68, issue contract, README, ADR-0001/ADR-0003, and
[Unreleased]changelog are reconciled. Existing development IndexedDB data is intentionally not migrated, per the issue decision.Validation:
npm test: 5,080 tests passed with the per-file coverage gatenpm run build: single-file artifact built successfullyChecklist
npm testpasses (the per-file coverage gate is non-negotiable)npm run buildsucceeds (single-filedist/sql.html)src/core/, network insrc/net/(injected fetch), DOM insrc/ui/CHANGELOG.md([Unreleased]) updated if behavior or the deployed surface changed