Repository navigation
fix(control): restore #13877 group set_color/set_icon changes reverted by #14669 - #14677
teamleaderleo wants to merge 1 commit into
Conversation
…d by #14669 #14669 (ci: restore the git object seed before checkout) was squashed from a stale base, so besides its workflow changes it put CLI/cmux.swift, ControlCommandCoordinator+WorkspaceGroup.swift and the color/icon tests back to their pre-#13877 state, deleting the tests. This restores those three files from 4f0ac55 (#13877). Nothing merged since touches them. Co-authored-by: LuckVd <37114923+LuckVd@users.noreply.github.com> 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. |
|
All contributors have signed the CLA ✍️ ✅ |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 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 (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe CLI and control socket now accept aliases for workspace-group color and icon setters. The control socket validates color values, normalizes accepted colors, and handles empty or null values as clears. Regression tests cover aliases, validation, and clearing. ChangesWorkspace group setters
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to No identified issue prevents merging after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The new option names use the existing group setters, and color input is more tightly validated. No new privilege or broader group access was identified. The socket’s access controls and the behavior of concurrent updates were not fully established. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (3 errors, 1 inconclusive)
✅ Passed checks (21 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 18.18% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 22 functions across 2 files. (1 skipped: 1 too large.) Full details: Cmux Swift Actor IsolationExplanation The production diff adds Resolution Mark the pure helper methods Full details: Cmux User-Facing Error PrivacyExplanation The production change copies untrusted request values into user-facing API error bodies. Resolution Do not echo raw parameter values in user-facing error data. Return only sanitized metadata, such as the rejected field name and expected type or format. For unknown keys, report the key name only if it is safe and omit its value. For invalid color strings, omit the raw string and return a generic format error. Full details: Cmux Full InternationalizationExplanation The production diff adds four user-facing control-socket error messages as English Swift string literals in Resolution Route the four new error messages through the existing
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
Warning Some tools did not complete. Review the errors below. 🔧 OpenGrep (1.30.0)CLI/cmux.swiftOpenGrep scan timed out 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 |
|
Automatic catch-up couldn't merge Label |
Summary
#14669 (
ci: restore the git object seed before checkout in E2E and iOS macOS jobs, 2509187) was squashed from a stale base. Besides its workflow changes, it put three files back to their pre-#13877 state:CLI/cmux.swift(drops the--color/--iconaliases)Packages/macOS/CmuxControlSocket/.../ControlCommandCoordinator+WorkspaceGroup.swift(drops thecolor/iconparam aliases and hex validation)Packages/macOS/CmuxControlSocket/Tests/.../ControlCommandCoordinatorWorkspaceGroupColorIconTests.swift(deleted)git diff 4f0ac55da15^ 2509187c6d9 -- <those paths>is empty, so #14669 was an exact revert of #13877 for these files. No commit since touches them.This PR restores the three files from 4f0ac55 (#13877) with
git checkout 4f0ac55da15 -- <paths>. No other changes. #14669's CI changes stay.Testing
Relies on PR CI (CmuxControlSocket package tests include the restored
ControlCommandCoordinatorWorkspaceGroupColorIconTests). Not built locally.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Restores the workspace group
set_color/set_iconchanges from #13877 that #14669 accidentally reverted when it was squashed from a stale base. No other changes; #14669's CI workflow changes are kept.Restored behavior
--color/--iconCLI aliases for thehex/symboloptions.color/iconas RPC parameter aliases, hex color validation, and normalization to the canonical#RRGGBBspelling, withinvalid_paramserrors for malformed values.Written for commit e89e344. Summary will update on new commits.
Summary by CodeRabbit
--colorand--iconas aliases for the existing color and icon options in the command-line interface.colorandiconas aliases for the corresponding workspace-group settings.#RRGGBB. Invalid values and parameter types now return an error without changing settings.nullclear color and icon overrides.