From 7867094c41dd5acd6b401ea88dd6e81f0b09ea81 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Fri, 9 Oct 2026 19:12:08 +0200 Subject: [PATCH] o tui: read initial state from 9P state file --- data/scripts/o | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/scripts/o b/data/scripts/o index 65bcee1..7f7b360 100755 --- a/data/scripts/o +++ b/data/scripts/o @@ -524,7 +524,10 @@ cmd_tui() { sleep 0.2 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 # Get session and agent IDs for event subscription