Conversation
Add an opt-in dev:worktree launcher that selects a stable data directory from the checkout path and forwards explicit profile overrides to the existing launcher. Generated-by: Codex
chihumyum
force-pushed
the
feat/dev-worktree-profile
branch
from
September 23, 2026 17:36
b467952 to
40a24ea
Compare
This branch has not been deployed
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
Multiple development checkouts currently share the default data directory. A branch that writes a different persisted format can leave another checkout unable to start its Runtime Host.
Add
npm run dev:worktreeto select a separate, stable profile from the checkout's canonical path. The command prints the selected directory and reuses the existing HMR launcher. Explicit--user-data-dirarguments take precedence. The defaultnpm run devbehavior is unchanged; profiles start empty, and existing data is neither copied nor removed.Includes platform-specific profile locations, argument validation, and English/Chinese contributor documentation. Profile identity follows the checkout path, so switching branches within one checkout reuses its data.
Verification
npm run lint,npm run format:check,npm run build,npm run typecheck, andnpm run check:asf-headerspass.npx knip --workspace apps/desktop,npx knip --workspace packages/ui, andgit diff --checkpass.npm run dev:worktreeprinted a directory under~/Library/Application Support/Maka Dev Worktrees/, launched on Vite port 5174 alongside an existing development instance, and displayed onboarding. Stopping this launcher left the existing instance running.AI use
Tool(s) and scope: Codex implemented the launcher, tests, and documentation, ran the checks, and prepared this pull request. The commit includes
Generated-by: Codex.Checklist
Does this PR entail a change in behavior?