Skip to content

Limits and context usage in the thread details card - #68

Open
ShriD5 wants to merge 3 commits into
mainfrom
t3-watch/2026-10-30-thread-card-usage
Open

ShriD5 wants to merge 3 commits into
mainfrom
t3-watch/2026-10-30-thread-card-usage

Conversation

@ShriD5

@ShriD5 ShriD5 commented Oct 30, 2026

Copy link
Copy Markdown
Owner

What T3 added: T3 Code's thread details card can show how much is left in each limit window of the current provider account (5h, weekly, …) and in the thread's context window (pingdotgg/t3code@310c128552, made a default-choosable section in @d7935f135f). Theo posted it as "Day 30" on X.

How Godspeed does it: the session card (crates/ui/src/shell/session_info.rs) gets a Usage section under the device/project/branch rows:

  • one row per limit window of the chat's harness's active account (5-hour first, then weekly, then others), using Godspeed's existing labels and amber/red thresholds from Settings → Usage
  • a Context row when the harness reports a context window (shows "—" while waiting for a token count)
  • each row is label · bar · % used (Godspeed's convention, same as the composer tachometer and the usage cockpit). Hover shows the reset time ("5-hour 64% · resets in 2h 14m (3:40 PM)") or the token counts.
  • It reads AccountsSnapshotCache, which the composer gauge already loads and polls for the selected chat's device, so it adds no provider probes. The shell now observes that cache so the card updates when a probe lands.
  • The section hides when there's nothing to show (harness without usage or context reporting).

Also in this PR: T3-WATCH ledger reviewed through 32ecd71726 (364 commits), new T3-GAPS rows (dev servers per thread, force stop, No-project → project), PARITY-T3 thread-details row updated.

Screenshots: not available (the agent never launches the GUI).

Tests run

  • cargo test -p zeron-ui --lib: 2151 passed (2 new: window ordering + context row, context only with a reported window)
  • cargo build -p godspeed: ok
  • cargo check --workspace --tests: ok

Please check by eye

  • Open the session card on a Claude or Codex chat: the Usage rows line up with the card's other rows, and the bar widths and colours look right in light, dark and frost.
  • Hover tooltips for a limit row and the Context row.
  • A chat on a remote device shows that device's account.
  • A harness with no usage reporting (e.g. Antigravity) shows no Usage section.

🤖 Generated with Claude Code

The session card gains a Usage section: each limit window of the chat's
account (5-hour first, then weekly and the rest) and the chat's context
window, as bars with the percent used. Hover a row for when it resets or
the token count. It reads the accounts cache the composer gauge already
loads, so it costs no extra probes.

Inspired by: pingdotgg/t3code@310c128552
Inspired by: pingdotgg/t3code@d7935f135f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant