Skip to content

fix(dev): reuse existing sessions by default - #3608

Merged
nonoqing merged 1 commit into
mainfrom
codex/fix-dev-shared-session-data-20261029
Oct 29, 2026
Merged

nonoqing merged 1 commit into
mainfrom
codex/fix-dev-shared-session-data-20261029

Conversation

@nonoqing

Copy link
Copy Markdown
Collaborator

Summary

Both Desktop development launchers now use the normal product data roots by default, so existing settings, workspaces, and sessions remain visible. Keep --isolated-data for checkout-local test data, and update the contributor and Desktop guides.

Type and Areas

Type: Bug fix

Areas: Desktop development tooling, tests, documentation

Motivation / Impact

Running pnpm run desktop:dev or pnpm run desktop:preview:debug previously selected isolated checkout-local data unless --shared-data was supplied. Existing sessions therefore appeared missing whenever a developer started with the default command. The default now reuses the app's normal storage selection, including explicit caller overrides. --shared-data remains a compatible alias for the default mode.

Verification

  • node --test scripts/dev-startup.test.mjs — 16 tests passed, covering default shared data, explicit isolation, caller overrides, child-process environments, and conflicting flags
  • git diff --check — passed
  • Scope is launcher-only; the Desktop guide specifies the focused Node suite instead of a native build for this change

Reviewer Notes

Existing isolated data stays in place and is accessible with --isolated-data; no sessions are moved, merged, or deleted. Development host channel separation, session writer leases, and scheduler leases remain unchanged. The independent-worktree example now specifies both isolated data and separate ports.

Remote workspace, remote control, Peer Device Mode, and Detached Dispatch were not exercised. No runtime or wire-protocol changes are included.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

@nonoqing
nonoqing merged commit 8615918 into main Oct 29, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant