Add option to hide sidebar workspace close button

Closed
AU
2mo ago
+925-313

Fixes #5635

Summary

  • Add sidebar.hideWorkspaceCloseButton to the settings catalog, cmux.json schema/parser/template, Settings > Sidebar, settings search, and command palette toggles.
  • Skip rendering the sidebar workspace close button when enabled so it does not reserve title width.
  • Add focused coverage for defaults, cmux.json parsing, snapshot reads, Settings search anchors, and command-palette toggling.

Testing

  • git diff --check
  • jq empty Resources/Localizable.xcstrings web/messages/*.json web/data/cmux.schema.json
  • python3 scripts/swift_file_length_budget.py --budget .github/swift-file-length-budget.tsv
  • python3 scripts/check-workspace-package-groups.py --check
  • python3 scripts/check-package-resolved-policy.py
  • ./scripts/lint-pbxproj-test-wiring.sh
  • scripts/check-pbxproj.sh
  • skills/cmux-settings/scripts/cmux-settings list-supported | rg '^sidebar\\.(hideWorkspaceCloseButton|wrapWorkspaceTitles|hideAllDetails)$'
  • swift test in Packages/macOS/CmuxSettings
  • swift test in Packages/macOS/CmuxSettingsUI

No dev app build or launch was run per this issue task's instruction.

Demo Video

Not recorded. This change is an opt-in settings/layout behavior, and this run is explicitly constrained not to launch a dev app.

Review Trigger

Please review the current PR head, including the full localization update for all app and web locales.

Checklist

  • Issue linked with Fixes #5635
  • Default behavior remains unchanged
  • New setting is exposed through Settings, cmux.json, search, and command palette
  • Localization audit completed for app and web message catalogs
  • Tests and repository validation run where allowed by task constraints

Summary by CodeRabbit

  • New Features
    • Added a new Sidebar option to hide the per-workspace close button.
    • Exposed the setting in the Command Palette, settings search, and searchable navigation.
  • Bug Fixes
    • When enabled, the workspace close button is no longer shown in the sidebar tab UI, reclaiming space for workspace titles.
  • Tests
    • Added/extended tests for default values, Command Palette toggle behavior, and settings import/JSON handling.
  • Documentation
    • Updated schema/help text and added localized strings for all supported languages.