Joe Savona
e87cd55ed9
Expose context usage in statusline state ( #61409 )
...
## What changed
Add `thread.usage.context` with optional `context_window_size`, `used_tokens`, and `used_percentage` fields. Use the latest token report for context usage and the built-in footer's window size and percentage calculations. Omit unavailable fields, including the percentage when the context window is unknown.
## Testing
Extend statusline state tests to cover missing usage, unknown context windows, and footer-consistent percentages, with context usage distinct from cumulative token totals.
GitOrigin-RevId: 699b65f6c047e76fcc7d1ba729eebd19a19e4bcd
2026-11-14 00:07:11 +00:00
..
2026-11-13 18:46:13 +00:00
2026-10-29 17:25:51 +00:00
2026-11-12 23:51:52 +00:00
2026-11-12 22:41:50 +00:00
2026-11-13 21:51:53 +00:00
2026-11-13 04:51:06 +00:00
2026-11-13 23:04:26 +00:00
2026-11-13 18:45:02 +00:00
2026-11-10 01:31:19 +00:00
2026-11-13 23:04:26 +00:00
2026-11-10 11:17:06 +00:00
2026-11-07 10:41:36 +00:00
2026-11-02 17:05:56 +00:00
2026-11-04 00:19:12 +00:00
2026-11-07 10:41:36 +00:00
2026-11-13 04:48:28 +00:00
2026-11-05 22:03:29 +00:00
2026-11-13 23:15:54 +00:00
2026-11-12 21:03:47 +00:00
2026-11-13 22:31:23 +00:00
2026-11-05 05:09:32 +00:00
2026-11-05 05:09:32 +00:00
2026-11-13 21:53:25 +00:00
2026-11-13 21:53:25 +00:00
2026-11-13 21:53:25 +00:00
2026-11-12 23:51:52 +00:00
2026-11-13 05:04:45 +00:00
2026-11-13 23:05:04 +00:00
2026-11-13 22:31:23 +00:00
2026-11-10 03:02:25 +00:00
2026-11-13 01:08:55 +00:00
2026-11-07 05:59:44 +00:00
2026-11-13 23:14:47 +00:00
2026-11-12 22:43:14 +00:00
2026-11-13 22:44:55 +00:00
2026-11-12 23:51:52 +00:00
2026-11-03 23:49:01 +00:00
2026-11-13 20:23:24 +00:00
2026-11-13 21:51:53 +00:00
2026-11-13 20:24:37 +00:00
2026-11-13 20:24:37 +00:00
2026-11-13 18:53:14 +00:00
2026-11-05 00:55:46 +00:00
2026-11-13 23:14:47 +00:00
2026-11-12 23:51:52 +00:00
2026-11-13 23:02:16 +00:00
2026-11-11 19:16:19 +00:00
2026-11-06 00:37:27 +00:00
2026-11-10 08:52:35 +00:00
2026-11-10 21:58:49 +00:00
2026-11-13 18:47:46 +00:00
2026-11-13 23:02:16 +00:00
2026-11-10 03:02:25 +00:00
2026-11-13 05:16:33 +00:00
2026-11-12 04:32:34 +00:00
2026-11-13 20:24:37 +00:00
2026-11-12 23:53:50 +00:00
2026-11-13 04:36:03 +00:00
2026-11-12 22:41:50 +00:00
2026-11-02 20:34:35 +00:00
2026-11-13 21:52:54 +00:00
2026-11-06 04:24:04 +00:00
2026-11-13 21:52:54 +00:00
2026-11-13 01:43:44 +00:00
2026-11-13 20:24:37 +00:00
2026-11-12 23:08:59 +00:00
2026-11-13 00:29:24 +00:00
2026-11-13 23:02:16 +00:00
2026-11-11 18:58:21 +00:00
2026-11-13 23:15:54 +00:00
2026-11-12 21:03:15 +00:00
2026-11-13 20:22:45 +00:00
2026-11-07 10:41:36 +00:00
2026-11-13 20:24:37 +00:00
2026-11-12 23:51:52 +00:00
2026-11-13 23:15:54 +00:00
2026-11-12 23:51:52 +00:00
2026-11-06 17:47:31 +00:00
2026-11-13 18:43:58 +00:00
2026-11-13 05:06:18 +00:00
2026-10-30 07:11:56 +00:00
2026-11-13 18:46:45 +00:00
2026-11-13 18:43:58 +00:00
2026-11-13 23:02:16 +00:00
2026-11-14 00:07:11 +00:00
2026-11-12 00:44:27 +00:00
2026-11-13 23:02:16 +00:00
2026-11-13 18:51:30 +00:00
2026-11-12 23:51:52 +00:00
2026-11-12 23:51:52 +00:00
2026-11-03 15:02:57 +00:00
2026-11-12 05:21:30 +00:00
2026-11-13 22:31:23 +00:00
2026-11-12 23:53:50 +00:00
2026-11-13 22:18:01 +00:00
2026-11-13 20:24:37 +00:00
2026-11-13 21:50:24 +00:00
2026-11-13 20:24:37 +00:00
2026-11-12 23:51:52 +00:00