You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 17dca85
Browse filesBrowse the repository at this point in the historyBrowse files
feat(tui): show per-turn completion time and duration
The assistant footer only appears on the final message of a prompt and
shows one number: the time since that prompt. Intermediate tool-call
turns show no footer, so there is no way to see when a turn finished or
which step of a long run took the time.
Add a `turn_timing` option to tui.json with two independent booleans:
- `time`: when each assistant turn finished, as the time of day if
today and the date and time otherwise (Locale.todayTimeOrDateTime,
the same format /timestamps uses for user messages).
- `duration`: how long each turn took (created -> completed). The
final turn keeps the existing total since the prompt and labels it
`total`, so both numbers are visible.
Either option gives every completed assistant turn a footer. Both
default to false, so the footer is unchanged unless enabled.
/turn-times and /turn-durations (also in the command palette and
bindable via session_toggle_turn_time / session_toggle_turn_duration)
toggle them at runtime. Like /timestamps, a toggled value persists in
kv.json and takes precedence over tui.json, which supplies the
default.
AI-Tool: opencode 1.18.33-vt-60-2fa3363c92
AI-Model: anthropic/claude-opus-5-5
AI-Variant: high
AI-Platform: linux
AI-Harness: Vibeterm fcfb2f9
AI-Session-ID: ses_ef81c1485ffeC5Sb59U9mVI77g
Copy file name to clipboardExpand all lines: packages/web/src/content/docs/tui.mdx
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -369,6 +369,10 @@ You can customize TUI behavior through `tui.json` (or `tui.jsonc`).
369
369
"enabled": false
370
370
},
371
371
"diff_style": "auto",
372
+
"turn_timing": {
373
+
"time": false,
374
+
"duration": false
375
+
},
372
376
"cursor": {
373
377
"style": "block",
374
378
"blinking": true
@@ -399,6 +403,7 @@ This is separate from `opencode.json`, which configures server/runtime behavior.
399
403
-`scroll_acceleration.enabled` - Enable macOS-style scroll acceleration for smooth, natural scrolling. When enabled, scroll speed increases with rapid scrolling gestures and stays precise for slower movements. **This setting takes precedence over `scroll_speed` and overrides it when enabled.**
400
404
-`scroll_speed` - Controls how fast the TUI scrolls when using scroll commands (minimum: `0.001`, supports decimal values). Defaults to `3`. **Note: This is ignored if `scroll_acceleration.enabled` is set to `true`.**
401
405
-`diff_style` - Controls diff rendering. `"auto"` adapts to terminal width, `"stacked"` always shows a single-column layout.
406
+
-`turn_timing` - Adds timing to the footer of every assistant turn, including the intermediate tool-call turns. `time` shows when the turn finished: the time of day if today, the date and time otherwise. `duration` shows how long the turn took; the final turn keeps the total since your prompt, labelled `total`. Both default to `false`. Toggle them at runtime with `/turn-times` and `/turn-durations`; the toggled value persists and takes precedence over `tui.json`.
402
407
-`cursor` - Controls the terminal cursor in TUI input fields. `style` defaults to `"block"`, can be `"underline"`, `"line"`, or `"default"`; `blinking` defaults to `true`. When `style` is `"default"`, the terminal default cursor is restored, so `blinking` has no effect.
403
408
-`mouse` - Enable or disable mouse capture in the TUI (default: `true`). When disabled, the terminal's native mouse selection/scrolling behavior is preserved.
404
409
-`keep_scroll_on_submit` - Keep the session scroll position when a prompt is submitted instead of jumping to the bottom (default: `false`). Toggle it at runtime with `/keep-scroll`; the toggle is remembered and takes precedence over this option.
0 commit comments