Eric Traut
a526f54b00
Show live context compaction status in the TUI ( #42319 )
...
## Why
Context compaction was only reported after it completed, so the TUI did not
show when compaction was actively making room to continue.
## What changed
- Show `Compacting context` as soon as manual or server-driven compaction
starts, with an elapsed timer independent of the current turn timer.
- Preserve the compaction status across follow-up input and transient activity,
while still allowing retry errors to take precedence.
- Restore in-progress compaction timing from thread snapshots and add the live
duration to the completion message.
- Clear stale compaction state when the turn starts, completes, or terminates.
## Testing
Added TUI tests covering manual and server-driven compaction, narrow rendering,
follow-up input, replay and task switching, retry status, timer preservation,
and turn termination.
GitOrigin-RevId: 804e1bc553315da24ff1f99462e8e282818cada3
2026-09-02 18:03:55 +00:00
..
2026-08-12 19:43:32 +00:00
2026-07-13 09:40:51 +00:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-04-20 15:37:31 -07:00
2026-04-20 15:37:31 -07:00
2026-07-09 03:40:08 +00:00
2026-07-09 03:40:08 +00:00
2026-07-09 03:40:08 +00:00
2026-08-24 17:07:21 +00:00
2026-03-28 11:23:07 -06:00
2026-05-12 10:43:17 -03:00
2026-05-12 10:43:17 -03:00
2026-05-12 10:43:17 -03:00
2026-08-18 21:43:22 +00:00
2026-05-29 11:06:40 -07:00
2026-05-29 11:06:40 -07:00
2026-05-29 11:06:40 -07:00
2026-08-17 19:11:34 +00:00
2026-04-28 12:52:25 -03:00
2026-08-25 03:08:33 +00:00
2026-03-28 11:23:07 -06:00
2026-06-05 08:32:07 -07:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-05-12 10:43:17 -03:00
2026-05-12 10:43:17 -03:00
2026-03-28 11:23:07 -06:00
2026-07-09 03:40:08 +00:00
2026-07-09 03:40:08 +00:00
2026-09-02 18:03:55 +00:00
2026-09-02 18:03:55 +00:00
2026-09-02 18:03:55 +00:00
2026-09-01 19:06:32 +00:00
2026-09-01 19:06:32 +00:00
2026-09-01 19:06:32 +00:00
2026-09-01 19:06:32 +00:00
2026-08-15 10:57:15 +00:00
2026-04-30 11:34:34 -07:00
2026-04-24 21:16:45 -07:00
2026-06-19 21:37:01 -07:00
2026-07-09 03:40:08 +00:00
2026-07-09 03:40:08 +00:00
2026-04-01 22:00:27 -06:00
2026-04-01 22:00:27 -06:00
2026-04-01 22:00:27 -06:00
2026-04-01 22:00:27 -06:00
2026-08-01 17:43:03 +00:00
2026-04-27 18:48:57 -07:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-08-31 18:34:10 +00:00
2026-08-31 18:34:10 +00:00
2026-08-31 18:34:10 +00:00
2026-06-12 11:57:22 -07:00
2026-07-13 22:50:28 +00:00
2026-04-28 12:52:25 -03:00
2026-07-13 22:50:28 +00:00
2026-03-28 11:23:07 -06:00
2026-04-28 09:24:29 -07:00
2026-06-23 19:52:37 +00:00
2026-03-28 11:23:07 -06:00
2026-04-20 15:37:31 -07:00
2026-07-14 06:55:29 +00:00
2026-05-11 10:49:19 -07:00
2026-05-11 10:49:19 -07:00
2026-07-29 03:50:00 +00:00
2026-05-11 10:49:19 -07:00
2026-05-11 10:49:19 -07:00
2026-05-18 11:28:53 -07:00
2026-08-11 16:16:43 +00:00
2026-08-11 16:16:43 +00:00
2026-07-09 03:40:08 +00:00
2026-07-20 16:05:14 +00:00
2026-07-09 03:40:08 +00:00
2026-07-09 03:40:08 +00:00
2026-08-25 03:08:33 +00:00
2026-08-25 03:08:33 +00:00
2026-08-25 03:08:33 +00:00
2026-08-25 03:08:33 +00:00
2026-08-20 05:49:49 +00:00
2026-09-01 19:06:32 +00:00
2026-09-01 19:06:32 +00:00
2026-08-25 01:27:18 +00:00
2026-07-14 16:29:54 +00:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-09-01 19:06:32 +00:00
2026-03-28 11:23:07 -06:00
2026-09-01 19:06:32 +00:00
2026-03-28 11:23:07 -06:00
2026-04-24 21:16:45 -07:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-07-19 19:44:10 +00:00
2026-07-19 19:44:10 +00:00
2026-07-19 19:44:10 +00:00
2026-07-22 15:41:47 +00:00
2026-07-17 23:14:37 +00:00
2026-03-28 11:23:07 -06:00
2026-09-01 19:06:32 +00:00
2026-09-02 18:03:55 +00:00
2026-07-09 03:40:08 +00:00
2026-05-12 10:43:17 -03:00
2026-04-15 15:34:25 +01:00
2026-04-15 15:34:25 +01:00
2026-08-18 18:50:58 +00:00
2026-08-18 18:50:58 +00:00
2026-08-18 18:50:58 +00:00
2026-09-01 19:06:32 +00:00
2026-07-13 09:40:51 +00:00
2026-04-28 12:52:25 -03:00
2026-08-29 04:30:58 +00:00
2026-08-29 04:30:58 +00:00
2026-08-29 04:30:58 +00:00
2026-04-20 21:52:30 +00:00
2026-08-26 05:00:23 +00:00
2026-07-14 21:50:19 +00:00
2026-05-12 10:43:17 -03:00
2026-09-01 19:06:32 +00:00
2026-07-17 15:14:47 +00:00
2026-07-17 15:14:47 +00:00
2026-07-09 03:40:08 +00:00
2026-03-28 11:23:07 -06:00
2026-05-29 11:06:40 -07:00
2026-05-29 11:06:40 -07:00
2026-05-12 10:43:17 -03:00
2026-08-23 07:24:57 +00:00
2026-08-23 07:24:57 +00:00
2026-04-19 14:01:58 -03:00
2026-05-12 10:43:17 -03:00
2026-05-12 10:43:17 -03:00
2026-05-12 10:43:17 -03:00
2026-06-22 10:30:16 -07:00
2026-06-24 18:48:11 -07:00
2026-06-22 17:31:14 -07:00
2026-06-26 17:24:46 -04:00
2026-06-24 18:48:11 -07:00
2026-06-24 18:48:11 -07:00
2026-06-24 18:48:11 -07:00
2026-04-28 12:52:25 -03:00
2026-04-30 10:25:07 -07:00
2026-06-24 18:48:11 -07:00
2026-06-24 18:48:11 -07:00
2026-09-01 19:06:32 +00:00
2026-09-01 19:06:32 +00:00
2026-07-09 03:40:08 +00:00
2026-06-22 13:48:09 -07:00
2026-06-22 13:48:09 -07:00
2026-05-29 11:06:40 -07:00
2026-07-15 01:36:44 +00:00
2026-08-26 17:45:42 +00:00
2026-06-22 18:45:41 +00:00
2026-07-17 15:28:19 +00:00
2026-06-22 18:45:41 +00:00
2026-07-17 15:28:19 +00:00
2026-07-17 15:28:19 +00:00
2026-07-14 21:50:19 +00:00
2026-07-18 18:19:39 +00:00
2026-07-08 16:24:12 -07:00
2026-08-27 04:51:46 +00:00
2026-03-28 11:23:07 -06:00
2026-05-04 08:58:07 -07:00
2026-07-09 03:40:08 +00:00
2026-06-09 09:41:58 -07:00
2026-09-01 19:06:32 +00:00
2026-07-10 23:16:09 +00:00
2026-07-15 02:03:46 +00:00
2026-07-10 23:16:09 +00:00
2026-09-01 19:06:32 +00:00
2026-09-01 19:06:32 +00:00
2026-09-01 19:06:32 +00:00
2026-08-07 02:50:32 +00:00
2026-07-23 21:03:40 +00:00
2026-08-07 02:50:32 +00:00
2026-06-12 17:33:43 -07:00
2026-07-14 16:29:54 +00:00
2026-08-25 00:15:49 +00:00
2026-06-03 20:30:15 -03:00
2026-05-29 11:07:19 -07:00
2026-04-09 18:10:38 -03:00
2026-06-10 18:04:02 -07:00
2026-08-07 02:45:35 +00:00
2026-08-07 02:45:35 +00:00
2026-08-07 02:45:35 +00:00
2026-05-12 10:43:17 -03:00
2026-04-16 09:01:45 -07:00
2026-08-24 23:15:04 +00:00
2026-08-24 23:15:04 +00:00
2026-07-09 03:40:08 +00:00
2026-08-13 00:30:08 +00:00
2026-08-13 00:30:08 +00:00
2026-08-13 00:34:39 +00:00
2026-08-21 19:47:49 +00:00
2026-04-24 21:16:45 -07:00
2026-04-30 22:42:07 -07:00
2026-04-16 09:00:16 -07:00
2026-04-12 15:42:09 -07:00
2026-07-08 16:24:12 -07:00
2026-06-01 09:30:20 -07:00
2026-06-01 09:30:20 -07:00
2026-06-01 09:30:20 -07:00
2026-06-01 09:30:20 -07:00
2026-06-22 04:25:07 -07:00
2026-05-29 11:06:40 -07:00
2026-04-20 17:46:11 -07:00
2026-04-20 17:46:11 -07:00
2026-05-25 09:41:32 -07:00
2026-08-13 00:34:39 +00:00
2026-07-09 03:40:08 +00:00
2026-05-12 10:43:17 -03:00
2026-09-01 19:06:32 +00:00
2026-08-20 07:17:31 +00:00
2026-08-24 02:46:56 +00:00
2026-05-13 15:33:27 +00:00
2026-05-13 15:33:27 +00:00
2026-05-13 15:33:27 +00:00
2026-05-25 09:41:32 -07:00
2026-08-13 00:34:39 +00:00
2026-05-29 11:09:40 -07:00
2026-07-08 12:29:21 -07:00
2026-07-09 03:40:08 +00:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-07-09 03:40:08 +00:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-06-22 18:45:41 +00:00
2026-06-22 18:45:41 +00:00
2026-06-22 18:45:41 +00:00
2026-06-12 17:33:43 -07:00
2026-09-01 19:06:32 +00:00
2026-03-28 11:23:07 -06:00
2026-05-29 16:31:33 -07:00
2026-05-29 16:31:33 -07:00
2026-08-31 21:19:22 +00:00
2026-04-20 05:51:47 +00:00
2026-04-20 05:51:47 +00:00
2026-04-20 05:51:47 +00:00
2026-04-20 05:51:47 +00:00
2026-04-20 05:51:47 +00:00