feat(web): add live activity status and collapse turn details
The composer now has one status line for `Rhema is working...` and typing peers. It replaces the separate typing paragraph. A running turn no longer adds a transcript card. When it ends, the log shows a collapsed `rhema finished · N steps` line. Thinking, draft text, tool calls, and usage live inside it. The event replay starts at the oldest loaded message so completed turns rebuild after a reload.
This commit is contained in:
1 parent
36de0aace7
commit
7f494b28de
4 files changed
+122
-82
No files matched your search
@@ -318,13 +318,11 @@ for agent messages, the turn. Images and pastes ride the message row;
|
||||
the bytes are served from a room route, and vision models get inline
|
||||
image blocks the way the claw already sends them.
|
||||
|
||||
Tool calls render as collapsed cards inside the turn: the command, the
|
||||
exit code, and the output tail. The agent's draft text renders as a
|
||||
collapsed "working" strip and is marked interrupted when a step dies.
|
||||
|
||||
A turn is a visual block: started by `<name>`, a spinner while running,
|
||||
the agent's messages inside it, and a footer with steps, tokens, and
|
||||
cost. The footer is per turn, not per message.
|
||||
A running turn has no transcript card. The status line above the composer
|
||||
shows `Rhema is working...` until `turn_end`. When the turn ends, the log
|
||||
gets one collapsed line: `rhema finished · 3 steps`. Expanding it shows the
|
||||
draft text, thinking, tool calls, and usage. Nothing from the model stream
|
||||
is visible by default. The summary line is per turn, not per message.
|
||||
|
||||
### Preview
|
||||
|
||||
@@ -422,6 +420,10 @@ WebSocket frames: join, leave, typing, open file and selection, active
|
||||
terminal tab, preview port. TTL plus heartbeat. Presence is never written
|
||||
to the room log, and join and leave do not enter the model's history.
|
||||
|
||||
The line above the composer shows `Sam is typing...`, or the names of two
|
||||
people, or `Several people are typing...`. A running turn adds
|
||||
`Rhema is working...` in the same status area. Both states are ephemeral.
|
||||
|
||||
Cursors are the end goal. With a read-only editor they start as
|
||||
selection highlights, which needs no editing protocol.
|
||||
|
||||
|
||||
Reference in new issue
Block a user