Fix degraded colors in claude-teams
Closed
LA
2mo ago+11+11+01234567890123456789-12-12-01234567890123456789
Summary
- Changed
TERMfromscreen-256colortoxterm-256colorin claude-teams environment - Explicitly set
COLORTERM=truecolorso CLI tools detect truecolor support - Updated both Swift CLI and Go remote daemon
TERM_PROGRAMstays unset (needed for tmux compat)
screen-256color causes tools like Claude Code to fall back to a limited color palette. xterm-256color + COLORTERM=truecolor gives proper color rendering while still working with the fake tmux environment.
Test plan
- Run
cmux claude-teamsand verify colors match regular terminal panes - Run
env | grep TERMin a claude-teams pane, confirmTERM=xterm-256colorandCOLORTERM=truecolor - Verify teammate mode still works (tmux compat not broken)
Summary by cubic
Fixes degraded colors in claude-teams by using TERM=xterm-ghostty and COLORTERM=truecolor, restoring truecolor output while keeping tmux compatibility. TERM_PROGRAM is preserved for claude-teams and unset only for opencode; updates cover both the Swift CLI and Go remote daemon.
- Bug Fixes
- Default
TERM:screen-256color->xterm-ghostty. - Set
COLORTERM=truecolorso tools detect 24-bit color. - Preserve
TERM_PROGRAMin claude-teams; unset only in opencode. - Update tests for new
TERMandTERM_PROGRAMbehavior.
- Default
Summary by CodeRabbit
-
Bug Fixes
- Default terminal type changed to xterm-ghostty for improved compatibility, COLORTERM=truecolor is now set for richer colors, and clearing of TERM_PROGRAM is limited to a specific launcher path (no longer removed globally).
-
Tests
- Updated environment tests and assertions to reflect the new terminal defaults and TERM_PROGRAM behavior.