Fix degraded colors in claude-teams

Closed
LA
2mo ago
+11-12

Summary

  • Changed TERM from screen-256color to xterm-256color in claude-teams environment
  • Explicitly set COLORTERM=truecolor so CLI tools detect truecolor support
  • Updated both Swift CLI and Go remote daemon
  • TERM_PROGRAM stays 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-teams and verify colors match regular terminal panes
  • Run env | grep TERM in a claude-teams pane, confirm TERM=xterm-256color and COLORTERM=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=truecolor so tools detect 24-bit color.
    • Preserve TERM_PROGRAM in claude-teams; unset only in opencode.
    • Update tests for new TERM and TERM_PROGRAM behavior.

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.