Charlie Marsh
50c227a6e2
Bound item loading for paginated read_thread calls ( #61955 )
...
## Why
`read_thread` returns at most 20 items per turn, but requesting full turns loads every item in paginated history before trimming the result.
## What changed
For paginated threads, request turn metadata without items, then fetch the newest 20 items per turn concurrently through `thread/items/list`. Restore chronological item order before building the response and share the item limit with the summary code.
## Testing
Add a regression test that verifies the newest 20 items are returned in order with `includeOutputs` both enabled and disabled.
GitOrigin-RevId: ba73a322cac7ee5262135a271f3574dc22d9d78c
2026-11-17 03:16:31 +00:00
..
2026-11-13 18:46:13 +00:00
2026-11-12 23:51:52 +00:00
2026-11-12 22:41:50 +00:00
2026-11-16 12:03:11 +00:00
2026-11-13 04:51:06 +00:00
2026-11-17 01:43:38 +00:00
2026-11-16 03:39:14 +00:00
2026-11-10 01:31:19 +00:00
2026-11-17 02:43:52 +00:00
2026-11-14 02:23:37 +00:00
2026-11-07 10:41:36 +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-17 02:02:21 +00:00
2026-11-17 02:01:18 +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-16 17:47:49 +00:00
2026-11-16 17:47:49 +00:00
2026-11-16 17:47:49 +00:00
2026-11-16 17:47:49 +00:00
2026-11-16 18:54:05 +00:00
2026-11-16 03:40:21 +00:00
2026-11-17 03:15:14 +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-17 03:15:14 +00:00
2026-11-12 22:43:14 +00:00
2026-11-16 19:28:36 +00:00
2026-11-12 23:51:52 +00:00
2026-11-13 20:23:24 +00:00
2026-11-16 00:02:00 +00:00
2026-11-17 02:02:21 +00:00
2026-11-13 20:24:37 +00:00
2026-11-16 18:19:16 +00:00
2026-11-05 00:55:46 +00:00
2026-11-17 02:43:52 +00:00
2026-11-12 23:51:52 +00:00
2026-11-17 02:31:45 +00:00
2026-11-14 02:45:51 +00:00
2026-11-06 00:37:27 +00:00
2026-11-10 08:52:35 +00:00
2026-11-17 01:59:51 +00:00
2026-11-17 02:31:45 +00:00
2026-11-14 06:14:36 +00:00
2026-11-15 00:39:00 +00:00
2026-11-13 05:16:33 +00:00
2026-11-12 04:32:34 +00:00
2026-11-17 02:32:53 +00:00
2026-11-12 23:53:50 +00:00
2026-11-17 01:59:51 +00:00
2026-11-16 20:53:56 +00:00
2026-11-12 22:41:50 +00:00
2026-11-13 21:52:54 +00:00
2026-11-06 04:24:04 +00:00
2026-11-16 18:54:05 +00:00
2026-11-17 01:11:13 +00:00
2026-11-16 19:13:33 +00:00
2026-11-16 23:27:21 +00:00
2026-11-16 18:54:05 +00:00
2026-11-17 02:43:52 +00:00
2026-11-11 18:58:21 +00:00
2026-11-16 03:40:21 +00:00
2026-11-16 22:54:58 +00:00
2026-11-16 22:26:31 +00:00
2026-11-07 10:41:36 +00:00
2026-11-17 02:02:21 +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-16 03:23:10 +00:00
2026-11-14 00:57:54 +00:00
2026-11-16 22:26:31 +00:00
2026-11-16 19:30:11 +00:00
2026-11-14 23:52:50 +00:00
2026-11-17 03:16:31 +00:00
2026-11-17 02:43:52 +00:00
2026-11-12 00:44:27 +00:00
2026-11-16 23:26:42 +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-17 01:11:13 +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-17 02:43:52 +00:00
2026-11-17 02:43:52 +00:00
2026-11-13 20:24:37 +00:00
2026-11-12 23:51:52 +00:00