agent web UI: add terminal verbosity setting (expand tool output by default)

Adds a browser-local (localStorage only, no backend field) toggle in
the per-agent overflow menu's new settings section: whether otherwise-
collapsed <details> rows in the live terminal (long tool-results,
Write/Edit diffs, ...) default open. Message-bearing rows that already
default open (send/ask/answer/recv) are unaffected either way.

The shared terminal factory (frontend/packages/shared/src/terminal/terminal.js)
gains an optional expandDetails option (boolean or zero-arg function),
read live on every details()/detailsDiff() call rather than captured
once, so flipping the toggle mid-session applies to the next rendered
row without a reload. Unused by the dashboard's own terminal pane, so
its default-closed behaviour is unchanged.

Closes #2961.
This commit is contained in:
iris 2026-08-02 18:25:45 +02:00
commit 198db326b3
5 changed files with 94 additions and 1 deletions

View file

@ -299,6 +299,19 @@ h2, h3 {
border-color: var(--purple-dim);
background: color-mix(in srgb, var(--purple) 6%, transparent);
}
.overflow-item-verbosity {
color: var(--muted);
}
.overflow-item-verbosity:hover {
color: var(--fg);
background: color-mix(in srgb, var(--purple) 8%, transparent);
border-color: var(--purple-dim);
}
.overflow-item-verbosity.active {
color: var(--purple);
border-color: var(--purple-dim);
background: color-mix(in srgb, var(--purple) 6%, transparent);
}
/* Header pill — inbox / loose-ends triggers. Compact, count-prominent. */
.header-pill {