Add chat file back for TUI text streaming
This commit is contained in:
parent
bc5f45854e
commit
f2f33e7826
|
|
@ -848,6 +848,11 @@ func buildAgentChildren(a *agent.Agent, s *session.Session) []virtfs.FsNodeDecl
|
|||
return data, nil
|
||||
}),
|
||||
),
|
||||
// chat — Rendered plain text stream for TUI (blocking)
|
||||
virtfs.FileNode("chat", 0440,
|
||||
virtfs.Doc("Rendered chat log stream (plain text). Blocks for new data."),
|
||||
virtfs.Stream(a.TextLogRead, a.ChatSignal),
|
||||
),
|
||||
// block — Read block by ID (rdwr: write ID, read JSON block)
|
||||
virtfs.FileNode("block", 0660,
|
||||
virtfs.Doc("Get block by ID. Write block ID, read JSON block."),
|
||||
|
|
|
|||
|
|
@ -518,7 +518,7 @@ cmd_tui() {
|
|||
tmux new-session -d -s "$tmux_session" -c "$HOME"
|
||||
tmux set-option -t "$tmux_session" mouse on
|
||||
sleep 0.3 # Wait for shell to initialize
|
||||
tmux send-keys -t "$tmux_session" "o '$ctx' log -n 1000; o '$ctx' read log" Enter
|
||||
tmux send-keys -t "$tmux_session" "o '$ctx' read log; o '$ctx' read chat" Enter
|
||||
|
||||
tmux split-window -t "$tmux_session" -v -l 20%
|
||||
sleep 0.2
|
||||
|
|
|
|||
Loading…
Reference in New Issue