feat(tui): show time-since-last-user-message alongside session total (#8541)

StatusRule now renders `{sinceLastMsg}/{sinceSession}` (e.g. `12s/3m 45s`)
when a user has submitted in the current session; falls back to the total
alone otherwise. Wires `lastUserAt` through the state/session lifecycle:
- useSubmission stamps `setLastUserAt(Date.now())` on send
- useSessionLifecycle nulls it in reset/resetVisibleHistory
- /branch slash nulls it on fork
This commit is contained in:
Brooklyn Nicholson 2026-04-20 11:17:34 -05:00
parent b7e71fb727
commit 1e7de177e8
8 changed files with 48 additions and 8 deletions

View file

@ -188,6 +188,7 @@ const ComposerPane = memo(function ComposerPane({
busy={ui.busy}
cols={composer.cols}
cwdLabel={status.cwdLabel}
lastUserAt={status.lastUserAt}
model={ui.info?.model?.split('/').pop() ?? ''}
sessionStartedAt={status.sessionStartedAt}
showCost={ui.showCost}