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:
vhaudiquet committed 2026-11-28 11:35:21 +01:00
1 parent 36de0aace7
commit 7f494b28de
4 files changed
+122 -82

No files matched your search

+57 -34
View File
@@ -930,6 +930,48 @@ button {
}
.activity {
min-width: 0;
color: var(--muted);
font-size: var(--fs-small);
}
.activity-summary {
cursor: pointer;
padding: var(--sp-1) 0;
color: var(--faint);
line-height: var(--lh-body);
}
.activity-summary:hover {
color: var(--text);
}
.activity-label {
margin-right: var(--sp-1);
color: var(--accent);
font-weight: 600;
}
.activity-result {
color: var(--muted);
}
.activity-state {
color: var(--faint);
}
.activity-state::before,
.activity-error::before {
content: "·";
margin: 0 var(--sp-1);
}
.activity-error {
color: var(--danger);
}
.activity-details {
margin-top: var(--sp-2);
border: 1px solid var(--border);
border-radius: var(--r-card);
background: var(--surface);
@@ -939,29 +981,6 @@ button {
gap: var(--sp-2);
}
.activity-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--sp-2);
}
.activity-label {
color: var(--accent);
font-size: var(--fs-small);
font-weight: 600;
}
.activity-state {
color: var(--faint);
font-size: var(--fs-small);
}
.activity-steps {
color: var(--muted);
font-size: var(--fs-small);
}
.activity-draft {
color: var(--muted);
font-size: var(--fs-meta);
@@ -975,11 +994,6 @@ button {
font-size: var(--fs-small);
}
.activity-error {
color: var(--danger);
font-size: var(--fs-meta);
}
.activity-foot {
display: flex;
flex-wrap: wrap;
@@ -1102,12 +1116,25 @@ button {
gap: var(--sp-1);
}
.typing {
.room-status {
width: calc(100% - var(--sp-8));
max-width: 760px;
min-height: 18px;
margin: 0 auto var(--sp-1);
display: flex;
flex-direction: column;
gap: 2px;
color: var(--muted);
font-size: var(--fs-small);
min-height: 18px;
}
.room-status-line {
margin: 0;
line-height: 18px;
}
.room-status-error {
color: var(--danger);
}
.new-messages {
@@ -1889,10 +1916,6 @@ body.pane-resizing * {
min-height: 0;
}
.typing {
padding: 0 var(--sp-4);
}
details:not([open]) > *:not(summary) {
display: none;
}