Repository navigation
Preserve process title updates after detaching a panel - #9603
Closed
austinywang wants to merge 2 commits into
Closed
austinywang wants to merge 2 commits into
austinywang wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughDetached workspace creation now passes ChangesDetached workspace title handling
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5 | ❌ 20❌ Failed checks (20 inconclusive)
✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
5 of 6 tasks
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
Previously, the process-derived destination title was passed through workspace creation as though it were a custom title. That pinned the new workspace and prevented later OSC title changes from becoming visible. The detached surface still seeds the automatic title, while explicit caller titles retain their existing behavior.
Fixes #4946
Testing
d8fb72a44b: the focused remotecmux-unitrun failed with exit 65 before the fix:TEST_RUNNER_CMUX_TEST_PROCESS=1 xcodebuild -project cmux.xcodeproj -scheme cmux-unit -configuration Debug -destination 'platform=macOS' -derivedDataPath <isolated> -clonedSourcePackagesDirPath <isolated>/.ci-source-packages -resultBundlePath <isolated>/focused.xcresult CMUX_SKIP_ZIG_BUILD=1 SWIFT_SUPPRESS_WARNINGS=YES GCC_WARN_INHIBIT_ALL_WARNINGS=YES -only-testing:cmuxTests/AppDelegateMoveTabToNewWorkspaceTests test2c4e482811: the same focused remote command exited 0; the result bundle reported 7 passed, 0 failed../scripts/reload-cloud.sh --tag sym4946succeeded through the cloud path onblacksmith-6vcpu-macos-26(run 30960418147)./tmp/cmux-debug-sym4946.sock: created a second panel, emittedInitial detached OSC title, ranbreak-pane, and observed the destination workspace withcustom_title: null. A subsequent OSC update changed both workspace and moved-surface titles toUpdated detached OSC title; scripted assertions passed. The tagged app was then quit withpkill -f "DerivedData/cmux-sym4946"and its stale tag socket was removed.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Preserves process-driven titles after detaching a panel so the new workspace keeps following OSC/process title updates instead of pinning a custom title. Fixes #4946.
nilfor the destination workspace title unless the caller provided one; keeptitleSourceas.auto.Written for commit 2c4e482. Summary will update on new commits.
Summary by CodeRabbit
Bug Fixes
Tests