Brennan Benson
9a10464bec
Make chat wait check the chat's work state instead of reading its history every second ( #41129 )
...
* fix(cli): chat wait checks the chat's work state instead of reading its history every second
`orca chat wait` and `orca chat send --wait` polled `agentSession.history` once a second only to
learn whether the chat was still working. Each poll made the host build a transcript page, scan
every retained item twice for the running turn, and send the newest reply's full text, all
ignored by the waiter.
The host now answers `agentSession.workState` with just the facts a wait decides from (working,
a waiting question or approval, queued ids, the next queued send, the fence), and the journal's
running turn comes from its existing per-row turn index instead of a scan. The CLI polls that
read and falls back to history pages on hosts without it. The final transcript read is unchanged.
* test(cli): type the chat wait host test without assertions
* docs(cli): say what a work-state check skips, not that it does no history work
* test(cli): pin the chat wait's exact final reply and its single history read
* docs(cli): name the scan a work-state check skips
* ci: typecheck the chat wait host test with the cross-process test project
2026-11-11 10:53:57 -08:00
..
2026-11-11 04:25:48 +00:00
2026-11-11 10:53:57 -08:00
2026-11-09 11:58:10 -08:00
2026-11-07 16:51:15 -08:00
2026-11-11 05:16:06 -08:00
2026-11-11 04:36:35 -05:00
2026-11-03 01:12:19 -08:00
2026-11-09 10:53:47 -08:00
2026-10-23 07:49:36 -07:00
2026-11-03 14:45:49 -08:00
2026-11-03 14:45:49 -08:00
2026-11-03 14:45:49 -08:00
2026-11-03 14:45:49 -08:00
2026-11-03 20:19:21 -08:00
2026-11-03 20:19:21 -08:00
2026-11-03 01:12:19 -08:00
2026-11-03 11:19:42 -08:00
2026-11-03 01:12:19 -08:00
2026-11-07 22:58:35 -08:00
2026-11-08 06:46:09 -08:00
2026-11-08 06:46:09 -08:00
2026-11-08 06:46:09 -08:00
2026-11-08 06:46:09 -08:00
2026-06-07 17:49:01 -07:00
2026-11-11 04:36:35 -05:00
2026-11-08 04:08:07 -05:00
2026-11-08 03:30:10 -08:00
2026-11-08 06:46:09 -08:00
2026-11-11 10:53:57 -08:00
2026-11-10 22:37:31 +00:00
2026-11-08 06:46:09 -08:00
2026-10-30 01:00:15 -07:00
2026-10-30 15:07:05 +00:00
2026-10-22 22:35:14 -04:00
2026-11-07 09:18:17 -08:00
2026-10-23 07:49:36 -07:00
2026-10-31 01:23:25 -04:00
2026-11-10 22:37:31 +00:00
2026-10-27 16:06:49 -07:00
2026-10-10 15:16:18 -07:00
2026-11-09 11:31:20 -08:00
2026-11-05 21:39:35 -08:00
2026-11-05 20:20:03 -08:00
2026-11-09 11:14:08 -08:00
2026-10-30 15:07:05 +00:00
2026-10-29 23:05:41 +00:00
2026-10-29 23:05:41 +00:00
2026-10-23 07:49:36 -07:00
2026-06-28 21:01:09 -07:00
2026-06-28 21:01:09 -07:00
2026-06-28 21:01:09 -07:00
2026-11-08 04:08:07 -05:00
2026-11-08 03:51:04 -08:00
2026-11-08 04:08:07 -05:00
2026-11-10 22:37:31 +00:00
2026-11-02 20:49:15 +00:00
2026-11-07 23:35:33 -05:00
2026-11-08 19:50:37 -08:00
2026-11-08 12:59:35 -08:00
2026-11-08 06:46:09 -08:00
2026-11-09 11:31:20 -08:00
2026-11-11 04:36:35 -05:00
2026-11-06 03:03:51 -08:00
2026-11-09 00:09:00 -08:00
2026-10-23 11:06:37 -07:00
2026-10-23 08:07:03 -07:00
2026-11-05 15:52:52 -08:00
2026-11-05 11:21:57 -08:00
2026-11-09 11:58:10 -08:00
2026-11-08 20:10:32 -08:00
2026-11-08 20:10:32 -08:00
2026-11-08 04:08:07 -05:00
2026-11-08 03:51:04 -08:00
2026-11-09 11:44:48 -08:00
2026-11-08 20:10:32 -08:00
2026-11-09 17:00:11 -05:00
2026-10-23 14:31:05 -07:00
2026-10-14 03:03:50 -07:00
2026-10-24 06:46:07 -07:00
2026-11-09 11:14:08 -08:00
2026-11-03 19:56:34 -08:00
2026-10-17 13:14:48 -07:00
2026-11-02 22:26:34 -08:00
2026-08-13 20:44:16 -07:00
2026-11-08 04:08:07 -05:00
2026-11-03 20:19:21 -08:00
2026-11-07 16:51:15 -08:00
2026-11-11 04:25:36 -05:00
2026-10-30 23:11:56 -04:00
2026-11-09 11:58:10 -08:00
2026-11-03 22:49:34 -08:00
2026-11-06 14:20:27 -08:00
2026-10-23 20:05:47 -07:00
2026-11-11 02:44:06 -08:00
2026-08-13 22:48:24 -07:00
2026-10-23 08:07:03 -07:00
2026-11-07 16:51:15 -08:00
2026-10-23 08:07:03 -07:00
2026-11-09 09:49:58 -08:00
2026-10-14 03:03:50 -07:00
2026-11-03 20:19:21 -08:00
2026-10-23 08:07:03 -07:00
2026-11-06 06:23:46 -08:00
2026-10-23 08:07:03 -07:00
2026-11-08 06:46:09 -08:00
2026-11-10 22:37:31 +00:00
2026-11-08 04:08:07 -05:00
2026-11-07 16:51:15 -08:00
2026-10-23 08:07:03 -07:00
2026-10-24 00:57:20 -07:00
2026-11-03 20:19:21 -08:00
2026-11-07 23:35:33 -05:00
2026-11-08 04:08:07 -05:00
2026-10-23 15:26:03 -07:00
2026-11-06 17:01:32 -08:00
2026-11-01 01:24:37 -08:00
2026-11-03 22:49:34 -08:00
2026-10-22 22:35:14 -04:00
2026-10-22 22:35:14 -04:00
2026-11-08 20:10:32 -08:00
2026-11-09 11:31:20 -08:00
2026-10-23 08:07:03 -07:00
2026-11-03 10:08:03 -08:00
2026-11-08 02:27:37 -05:00
2026-11-08 20:10:32 -08:00
2026-11-08 04:08:07 -05:00
2026-10-23 08:07:03 -07:00
2026-11-08 04:08:07 -05:00
2026-11-08 04:08:07 -05:00
2026-11-08 04:08:07 -05:00
2026-11-06 06:51:09 -08:00
2026-11-06 15:13:57 -08:00
2026-11-09 10:53:47 -08:00
2026-10-23 08:07:03 -07:00
2026-11-09 10:53:47 -08:00
2026-10-23 08:07:03 -07:00
2026-11-09 11:44:48 -08:00
2026-11-07 23:35:33 -05:00
2026-11-07 23:35:33 -05:00
2026-11-07 23:35:33 -05:00
2026-11-01 23:17:46 -08:00