matthewdavis-oai
3bf4e138fe
Stream partial thread search results and support cancellation ( #62132 )
...
## Why
Clients using `thread/search` have to wait for the search to finish before
they can show any matches. A search can also outlive the query that triggered
it, such as when a user changes their task mention query.
## What changed
- Add experimental `thread/search/stream` with best-effort
`thread/search/partial` notifications. Each notification carries the original
`requestId` and a batch of verified matches. Clients replace provisional
matches with the final page, which determines results, ordering, and cursors.
- Support connection-scoped cancellation through `thread/search/stream/cancel`
and `thread/search/cancel` for their respective search methods. Disconnecting
also stops active searches and reaps their search subprocesses.
- Cancel superseded or timed-out TUI task mention searches without delaying
available title matches.
## Testing
Add coverage for incremental results and final-page parity, slow clients,
connection-scoped cancellation and subprocess cleanup, and TUI task search
cancellation.
GitOrigin-RevId: b58abf7a1df424f191c8ede806d1d5266d299548
2026-11-17 23:46:48 +00:00
..
2026-11-16 04:23:56 +00:00
2026-11-16 21:49:32 +00:00
2026-11-14 01:34:43 +00:00
2026-11-17 22:45:02 +00:00
2026-11-17 23:46:48 +00:00
2026-11-17 06:32:38 +00:00
2026-11-06 07:43:44 +00:00
2026-11-17 00:39:06 +00:00
2026-11-05 16:56:05 +00:00
2026-11-01 15:51:11 +00:00
2026-11-14 02:23:37 +00:00
2026-11-06 07:43:44 +00:00
2026-10-26 18:13:00 +00:00
2026-11-15 01:50:45 +00:00
2026-11-15 01:50:45 +00:00
2026-11-16 00:03:21 +00:00
2026-11-17 00:39:06 +00:00
2026-11-17 00:39:06 +00:00
2026-11-08 19:35:45 +00:00
2026-11-13 21:52:22 +00:00
2026-11-16 00:03:21 +00:00
2026-11-17 05:52:43 +00:00
2026-11-12 00:02:01 +00:00
2026-11-12 00:02:01 +00:00
2026-11-16 04:23:56 +00:00
2026-11-17 05:52:43 +00:00
2026-11-17 23:46:48 +00:00
2026-11-15 07:28:15 +00:00
2026-11-13 21:51:53 +00:00
2026-11-14 07:46:36 +00:00
2026-11-15 01:50:45 +00:00
2026-11-16 04:23:56 +00:00
2026-11-17 06:31:18 +00:00
2026-11-12 01:57:33 +00:00
2026-11-14 00:08:20 +00:00
2026-11-16 21:49:32 +00:00
2026-11-17 05:52:43 +00:00
2026-11-17 05:52:43 +00:00
2026-11-16 21:49:32 +00:00
2026-11-17 06:18:06 +00:00
2026-11-17 06:18:06 +00:00
2026-11-17 07:26:02 +00:00
2026-11-06 05:26:52 +00:00
2026-11-10 05:09:30 +00:00
2026-11-17 23:46:48 +00:00
2026-11-15 07:28:15 +00:00
2026-10-16 19:13:40 +00:00
2026-11-10 07:06:53 +00:00
2026-11-01 15:50:25 +00:00
2026-11-15 01:46:01 +00:00
2026-11-15 01:46:01 +00:00
2026-11-17 00:13:04 +00:00
2026-11-17 00:13:43 +00:00
2026-10-30 22:30:53 +00:00
2026-11-16 00:04:24 +00:00
2026-11-02 21:37:43 +00:00
2026-11-17 13:39:08 +00:00
2026-11-16 21:49:32 +00:00
2026-11-10 11:17:06 +00:00
2026-11-04 00:31:24 +00:00
2026-11-13 18:48:50 +00:00
2026-10-26 18:13:00 +00:00
2026-11-14 07:19:13 +00:00
2026-11-10 18:32:00 +00:00
2026-11-14 00:43:58 +00:00
2026-11-14 00:32:35 +00:00
2026-11-17 13:39:08 +00:00
2026-11-17 00:15:16 +00:00
2026-11-05 21:05:51 +00:00
2026-11-13 04:51:06 +00:00
2026-11-10 18:32:00 +00:00
2026-10-28 22:53:11 +00:00
2026-11-14 01:34:43 +00:00
2026-11-14 01:34:43 +00:00
2026-10-15 19:02:09 +00:00
2026-10-26 18:13:00 +00:00
2026-11-13 05:04:45 +00:00
2026-11-05 16:55:40 +00:00
2026-10-26 22:11:27 +00:00
2026-11-11 18:59:32 +00:00
2026-11-17 07:53:33 +00:00
2026-11-17 22:45:02 +00:00
2026-11-17 22:45:02 +00:00
2026-10-26 18:13:00 +00:00
2026-11-02 16:56:09 +00:00
2026-11-13 00:28:10 +00:00
2026-11-15 07:28:15 +00:00
2026-10-16 19:13:40 +00:00
2026-11-07 04:48:30 +00:00
2026-11-07 04:48:30 +00:00
2026-11-06 03:51:37 +00:00
2026-11-15 07:28:15 +00:00
2026-11-17 23:46:48 +00:00
2026-11-13 00:52:53 +00:00
2026-11-17 00:13:04 +00:00
2026-11-17 00:15:16 +00:00
2026-11-16 21:50:03 +00:00
2026-11-17 05:52:43 +00:00
2026-11-16 21:49:32 +00:00
2026-11-17 00:15:16 +00:00
2026-11-17 00:13:43 +00:00
2026-11-17 00:15:16 +00:00
2026-11-17 00:15:16 +00:00
2026-11-17 00:15:16 +00:00
2026-11-17 00:15:16 +00:00
2026-11-04 22:58:01 +00:00
2026-11-15 07:28:15 +00:00
2026-10-26 20:16:30 +00:00
2026-10-26 20:16:30 +00:00
2026-11-17 22:45:02 +00:00
2026-11-17 13:10:04 +00:00
2026-11-17 13:10:04 +00:00
2026-11-17 13:38:01 +00:00
2026-11-17 13:10:04 +00:00
2026-11-17 22:45:02 +00:00
2026-11-17 22:45:02 +00:00
2026-11-10 14:28:13 +00:00
2026-11-10 14:28:13 +00:00
2026-11-10 14:28:13 +00:00
2026-11-14 07:46:36 +00:00
2026-11-17 00:13:43 +00:00
2026-11-13 23:49:59 +00:00
2026-11-13 23:49:59 +00:00
2026-11-15 03:17:50 +00:00
2026-11-15 03:17:50 +00:00
2026-10-26 22:11:27 +00:00
2026-10-26 18:13:00 +00:00
2026-11-10 23:35:28 +00:00
2026-11-13 18:50:28 +00:00
2026-11-17 13:36:36 +00:00
2026-11-13 04:51:06 +00:00
2026-11-13 04:51:06 +00:00
2026-11-17 23:46:48 +00:00
2026-11-10 23:34:54 +00:00
2026-11-06 23:00:38 +00:00
2026-11-17 05:52:43 +00:00