Skip to content

fix: resolve codex statusline context calculation and tmux compatibility issues#34

Merged
em0t merged 1 commit intomainfrom
fix/codex-statusline-improvements
Mar 18, 2026
Merged

fix: resolve codex statusline context calculation and tmux compatibility issues#34
em0t merged 1 commit intomainfrom
fix/codex-statusline-improvements

Conversation

@em0t
Copy link
Collaborator

@em0t em0t commented Mar 18, 2026

Changes

  • Fix context usage showing 100% by using last_token_usage.input_tokens instead of cumulative total_token_usage.total_tokens
  • Fix cross-instance context contamination by matching sessions via filename creation timestamp
  • Fix tmux normal mode statusline not showing due to inherited TERM_PROGRAM (add _is_tmux_cc to distinguish -CC mode)
  • Fix tmux -CC mode "Unrecognized command from tmux" error by wrapping SetUserVar with tmux passthrough
  • Switch iTerm2 plist operations from direct file I/O to defaults export/import (cfprefsd) to prevent running iTerm2 from overwriting changes
  • Fix zsh hooks update detection using shasum hash comparison instead of string equality
  • Auto-configure tmux allow-passthrough (prefer .tmux.conf.local for framework compatibility)
  • Add /clean-codex-statusline skill for complete statusline cleanup
  • Add cleanup_iterm2() function for proper Status Bar removal

Impact

  • Codex statusline (tmux + iTerm2)
  • Install/uninstall workflow

## Changes
- Fix context usage showing 100% by using last_token_usage.input_tokens instead of cumulative total_token_usage.total_tokens
- Fix cross-instance context contamination by matching sessions via filename creation timestamp
- Fix tmux normal mode statusline not showing due to inherited TERM_PROGRAM (add _is_tmux_cc to distinguish -CC mode)
- Fix tmux -CC mode "Unrecognized command from tmux" error by wrapping SetUserVar with tmux passthrough
- Switch iTerm2 plist operations from direct file I/O to defaults export/import (cfprefsd) to prevent running iTerm2 from overwriting changes
- Fix zsh hooks update detection using shasum hash comparison instead of string equality
- Auto-configure tmux allow-passthrough (prefer .tmux.conf.local for framework compatibility)
- Add /clean-codex-statusline skill for complete statusline cleanup
- Add cleanup_iterm2() function for proper Status Bar removal

## Impact
- Codex statusline (tmux + iTerm2)
- Install/uninstall workflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@em0t em0t changed the title fix(sync): resolve codex statusline context calculation and tmux compatibility issues fix: resolve codex statusline context calculation and tmux compatibility issues Mar 18, 2026
@em0t em0t merged commit 9462551 into main Mar 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant