Celia Chen
0877afbe85
Broaden remote compaction model fallback ( #32881 )
...
## Why
Compacting a resumed conversation can fail when its previous model is no longer
available. Some model-specific failures, such as a model-not-found response, are
not represented as invalid requests and therefore did not trigger the existing
fallback to the currently selected model.
## What changed
- Share a retry predicate between both remote compaction implementations.
- Fall back to the current model for invalid requests, unexpected statuses,
context-window and usage-limit errors, server failures, and exhausted retries.
## Testing
Add an integration test that resumes a conversation whose previous model returns
model-not-found and verifies that compaction and the next turn use the renamed
model.
GitOrigin-RevId: c3857beae2ce79b50589deb13c2e59710ce14725
2026-07-13 21:54:04 +00:00
..
2026-07-02 10:59:00 -07:00
2026-06-24 13:24:10 -07:00
2026-06-22 13:19:40 -07:00
2026-07-13 20:16:38 +00:00
2026-07-13 19:04:22 +00:00
2026-07-10 21:24:03 +00:00
2026-07-13 17:33:13 +00:00
2026-07-11 04:15:42 +00:00
2026-07-07 19:48:05 +00:00
2026-06-26 17:34:52 -07:00
2026-06-23 00:02:33 +00:00
2026-07-06 12:17:16 -07:00
2026-06-11 18:16:39 -07:00
2026-07-07 13:00:44 -07:00
2026-06-13 21:43:39 -07:00
2026-06-24 13:25:44 -07:00
2026-07-11 04:15:42 +00:00
2026-07-07 17:05:05 -07:00
2026-07-07 01:34:36 +00:00
2026-06-11 18:16:39 -07:00
2026-06-11 18:16:39 -07:00
2026-07-09 14:40:10 -07:00
2026-07-06 16:26:56 -07:00
2026-07-09 08:17:13 -07:00
2026-07-11 02:29:14 +00:00
2026-07-07 13:00:44 -07:00
2026-07-07 01:12:24 +00:00
2026-06-15 20:10:53 -07:00
2026-07-13 15:47:03 +00:00
2026-06-21 13:35:25 -07:00
2026-07-13 19:04:22 +00:00
2026-07-13 05:02:52 +00:00
2026-06-22 11:11:25 -07:00
2026-07-13 21:54:04 +00:00
2026-07-09 12:25:19 +09:00
2026-07-11 01:11:37 +00:00
2026-07-10 10:29:30 +00:00
2026-07-09 00:58:28 +00:00
2026-07-10 18:08:35 +00:00
2026-07-10 09:56:03 +00:00
2026-07-10 09:09:22 +00:00
2026-07-13 20:12:42 +00:00
2026-06-19 12:47:53 -07:00
2026-07-10 22:04:03 +00:00
2026-07-13 11:46:25 +00:00
2026-07-10 20:01:47 +00:00
2026-07-10 16:55:01 +00:00
2026-07-07 20:01:03 -04:00
2026-07-07 18:00:35 -07:00
2026-07-09 14:26:20 -07:00
2026-07-08 12:17:58 -04:00
2026-06-12 19:52:49 +00:00
2026-07-06 14:51:34 -07:00
2026-07-09 14:26:20 -07:00
2026-07-09 12:25:19 +09:00
2026-07-11 15:20:49 +00:00
2026-07-10 23:22:56 +00:00
2026-07-07 17:43:19 -07:00
2026-07-13 21:25:28 +00:00
2026-07-09 17:33:37 +01:00
2026-07-13 18:00:10 +00:00
2026-06-23 22:51:19 +01:00
2026-07-07 10:52:38 -07:00
2026-07-13 21:25:28 +00:00
2026-07-13 15:47:03 +00:00
2026-07-11 04:15:42 +00:00
2026-07-11 02:29:14 +00:00
2026-07-13 19:04:22 +00:00
2026-06-12 19:52:49 +00:00
2026-07-07 17:50:39 -04:00
2026-06-25 13:56:08 -07:00
2026-07-09 14:01:16 -07:00
2026-07-13 09:40:51 +00:00
2026-07-10 16:11:58 +00:00
2026-07-13 09:40:51 +00:00
2026-07-13 16:52:18 +00:00
2026-07-13 19:08:11 +00:00
2026-06-24 22:33:18 +00:00
2026-06-13 21:43:39 -07:00
2026-06-13 21:43:39 -07:00
2026-07-08 12:57:27 -07:00
2026-07-13 20:06:15 +00:00
2026-07-09 17:31:44 -07:00
2026-07-13 10:38:37 +00:00
2026-07-10 09:09:22 +00:00
2026-07-11 03:27:51 +00:00
2026-07-09 11:53:18 -07:00