o tui: read initial state from 9P state file
This commit is contained in:
parent
f2f33e7826
commit
7867094c41
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue