fix-tmux-status-2

Fix: tmux status-off applied to existing wg-chat sessions on TUI startup (not just new)

Metadata

Statusabandoned
Created2026-04-29T21:05:00.200866864+00:00
Tagsfix,tui,chat, eval-scheduled

Description

Description

fix-tmux-status (commit b0a7acec8) sets status off only on NEW tmux sessions created via spawn_via_tmux. Existing wg-chat-* sessions from before that commit still have the default status bar on. User reports seeing the harsh bar on chats that predate the fix.

User quote (after rebuild): 'not hidden? lol. it's on mine. [wg-chat-w1:claude*"✳ wg-workgraph-chat-2" 16:03 29-Apr-26..]'

Fix

At TUI startup (the orphan-sweep hook point at fn ensure_user_coordinator in state.rs:13294 — same hook implement-tmux-wrapped uses for orphan cleanup), iterate every wg-chat-* tmux session and call tmux set-option -t <session> status off. Idempotent, safe, ~3 lines of code.

Validation

  • Failing test or repro: pre-existing tmux session with status bar on; TUI startup; ASSERT tmux show -t <session> status returns 'off'
  • Live smoke: kill the user's TUI, manually create a fresh tmux session named wg-chat-test-foo with default config (status bar on), restart TUI; confirm the bar is now off
  • No regression: new sessions still get status off (the spawn_via_tmux path)
  • Existing implement-tmux-wrapped behavior preserved (orphan sweep still works)
  • cargo build + cargo test pass
  • cargo install --path . was run before claiming done

Depends on

Required by

Log