Repository navigation
Add app.defaultWorkspacePath to pick where Open Folder starts - #14455
Conversation
People who keep projects under one root had to navigate there from the active workspace's directory every time they opened a folder. The new app.defaultWorkspacePath setting pins where the Open Folder panel starts (File menu and command palette). It supports ~ and $VAR. When it is empty or not an existing folder, the panel starts in the active workspace's directory as before. Fixes #3156 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
|
Warning Review limit reachedNext included review available in 1 minute. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (10)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
All contributors have signed the CLA ✍️ ✅ |
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up: - The iOS/macOS conventions guard rejects all-static enums, so the resolver is now a struct with its dependencies in the initializer. - Drop $VAR expansion. cmux launched from the Dock only sees launchd's environment, so shell-exported variables would silently not resolve. A leading ~ is supported. - Log a warning when a non-empty setting is not an existing folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Update: none of these failures reproduced on a rerun, so they look flaky. Nothing to do here unless you know otherwise.
Commits in the range: 2d844cb...2a40caa Pull requests run only the suites their diff reaches, so main's full suite is where this shows first. If this pull request is the cause, please fix forward or revert; if it is not, say so here. This is an automated attribution and can be wrong, most often for a flaky test. |
Fixes #3156
What it does
Adds a
cmux.jsonsetting that pins the folder the Open Folder panel starts in:{ "app": { "defaultWorkspacePath": "~/code" } }~. Environment variables are not expanded: cmux started from the Dock only sees launchd's environment, so variables exported in a shell rc would not resolve.cmux.jsonsetting only for now, likeapp.windowTitleTemplate; there is no Settings window row yet.The "+ New Workspace" dialog the issue described no longer has a path field; Open Folder is where you pick a folder for a new workspace now, so that is where the setting applies. Starting new terminals somewhere other than the inherited directory is already covered by
app.workspaceInheritWorkingDirectory: falseplus Ghostty'sworking-directory.Prior work
Tests
OpenFolderPanelStartDirectoryTests(CmuxSettings package) covers~, absolute paths, whitespace, missing folders, relative paths,~user, and the fallback to the active workspace directory. The embedded schema is regenerated (generate-cmux-config-schema.py --checkpasses).🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Adds a
cmux.jsonsetting,app.defaultWorkspacePath, that pins the folder File > Open Folder and the command palette's Open Folder start in. Fixes #3156.~; a non-empty value that isn't an existing folder logs a warning.Written for commit 95e3b7a. Summary will update on new commits.