Repository navigation
fix(examples): show custom description in Project Worktrees sidebar - #15256
Conversation
…naflow-ai#4889) Project Worktrees rows (pinned and grouped) should show a workspace's custom description and fall back to the branch only when the description is empty. The two description cases fail today because the subtitle is always the branch. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…anaflow-ai#4889) The Project Worktrees example always used the branch as the row subtitle and ignored workspace.customDescription. Prefer the trimmed description and fall back to the branch, matching the Attention Queue and Dev Server examples. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
All contributors have signed the CLA ✍️ ✅ |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 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 selected for processing (2)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughPinned and project-grouped workspace rows now display a trimmed custom description when present. Otherwise, they display the trimmed branch summary. Tests cover both row types and the fallback. ChangesWorkspace subtitles
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The sidebar change appears ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 23 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (23 passed)
Full details: Description checkExplanation The description clearly explains the problem, resulting behavior, implementation scope, tests, and localization result. It omits the required Changelog section and a demo video or screenshot for this UI behavior change. ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 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 |
|
Review (merge-train). Straightforward and consistent with the rest of the examples. Nothing to change. Review
Fixed: nothing to fix. Left: nothing. What I did: same as your other PR, the branch was behind main and Merging on green. Thanks :) |
|
Correcting what I said earlier about merging on green: there is no green to merge on yet, and that is on our side rather than yours. This is a fork PR, so the substantive workflows are all sitting at I read both files end to end looking for anything that would make approving the run risky, and there is nothing: no workflow or build-script changes, and the new test spawns bash with a stubbed PATH inside a tempdir. I do not have permission to approve fork workflow runs from this session, though, so I am handing that to Leo rather than merging on bot-only checks. Nothing needed from you. The review I posted still stands and the change still looks right to me. :) |
teamleaderleo
left a comment
There was a problem hiding this comment.
Reviewed the focused diff and three tests. Custom descriptions correctly take precedence for pinned and grouped rows, with whitespace-only values falling back to the branch. Approving.
|
...Thank you very much! :) |
|
Merge receipt for |
4e0f7d2 fix(bash): keep $? for PROMPT_COMMAND hooks after cmux's (manaflow-ai#15255) ae49bf5 fix(examples): show custom description in Project Worktrees sidebar (manaflow-ai#15256) a9a229d Add cross-provider token usage accounting for agent transcripts (manaflow-ai#15332) 860619f Add a .worktreeinclude reader for seeding new worktrees (manaflow-ai#15413) 3edbd83 Clear the stale Needs input badge when Claude's permission is decided in the terminal (manaflow-ai#15170) 9ed9294 CodeRouter: hold capacity errors on the same model instead of failing fast (manaflow-ai#15310) 56d4547 docs: add a front door for outside contributors (manaflow-ai#15263) 799f906 fix(ci): recognize GUI token acquisition failures (manaflow-ai#15449) f118d43 ci: age parked builds by measured reuse distance (manaflow-ai#15616) 1f6744d ci: harden overflow switch recovery (manaflow-ai#15617) 9987778 Predicted echo: remote terminals only, withdraw on pasted and sent input (manaflow-ai#15211) d9e199b Subtle selection follow-ups: group header hairline, no focus re-render for legacy rows, cmux.json test (manaflow-ai#15195) c13afe1 test: cover UTF-8 workspace create commands (manaflow-ai#15622) e76a660 fix: preserve Claude remote-control names on restore (manaflow-ai#15619) 900f248 feat: expose cmux-owned scratch metadata in session listing (manaflow-ai#15615) b5604fa ci: say why compiled-product reuse refused an artifact (manaflow-ai#15553) # Conflicts: # .github/workflows/ci-cloud-overflow-probe.yml
Summary
com.example.cmux.sidebar.project-worktrees) always used the branch as the row subtitle and ignoredworkspace.customDescription, so descriptions set withcmux new-workspace --descriptionnever showed up.branchSubtitletorowSubtitlesince it is no longer branch-only.This builds on the approach in #9625 by @austinywang, thank you. This version keeps the change to the example package and its unit tests.
Closes #4889
Testing
ProjectWorktreeSidebarTests.swift(modeled onAttentionQueueSidebarTests.swift): description wins over branch for a grouped row, description wins for a pinned row, and a whitespace-only description falls back to the branch.swift test --package-path Examples/CmuxExtensionSidebarExamples: 16 tests, 0 failures.Checklist
🤖 Generated with Claude Code
Summary by cubic
Fixes the Project Worktrees example sidebar so row subtitles show a workspace's custom description instead of always defaulting to the branch.
branchSubtitletorowSubtitlesince it's no longer branch-only.Written for commit 43e6c08. Summary will update on new commits.
Summary by CodeRabbit