o tui: read initial state from 9P state file

This commit is contained in:
Levi Neely 2026-10-09 19:12:08 +02:00
parent f2f33e7826
commit 7867094c41
1 changed files with 4 additions and 1 deletions

View File

@ -524,7 +524,10 @@ cmd_tui() {
sleep 0.2 sleep 0.2
tmux send-keys -t "$tmux_session" "o '$ctx' prompt" Enter tmux send-keys -t "$tmux_session" "o '$ctx' prompt" Enter
tmux set-option -t "$tmux_session" status-right "starting... | %H:%M" # Get initial state
local initial_state
initial_state=$(ollie-9p read "session/$s/agent/$a/state" 2>/dev/null || echo "unknown")
tmux set-option -t "$tmux_session" status-right "$initial_state | %H:%M"
tmux set-option -t "$tmux_session" status-right-length 64 tmux set-option -t "$tmux_session" status-right-length 64
# Get session and agent IDs for event subscription # Get session and agent IDs for event subscription