Michael Bolin
4dcfeb3ecd
core: wrap token budget window context
...
Token-budget initial context carries thread and context-window lineage that the model should treat as one structured context-window block. Wrapping it in `<context_window>` makes that boundary explicit while preserving the existing window id content.
This adds shared `CONTEXT_WINDOW_*_TAG` protocol constants, updates `TokenBudgetContext` to render with those markers, treats the new wrapper as contextual developer content when mapping history, and refreshes the token-budget request-shape assertions and snapshot.
Verification:
- `just test -p codex-core token_budget`
- `just test -p codex-core recognizes_context_window_as_contextual_developer_content`
2026-06-22 15:58:27 -07:00
..
2026-06-08 11:39:08 +02:00
2026-06-09 12:48:04 -07:00
2026-06-11 18:16:39 -07:00
2026-06-22 13:19:40 -07:00
2026-06-22 10:27:23 -07:00
2026-06-22 15:08:59 -07:00
2026-06-18 11:54:49 -07:00
2026-06-11 21:28:52 -07:00
2026-06-22 13:48:09 -07:00
2026-06-22 13:55:32 -07:00
2026-06-22 13:03:11 -07:00
2026-06-18 19:31:19 +00:00
2026-06-18 19:31:19 +00:00
2026-06-11 18:16:39 -07:00
2026-06-22 04:25:07 -07:00
2026-06-13 21:43:39 -07:00
2026-06-18 20:29:01 +00:00
2026-06-22 13:03:11 -07:00
2026-06-22 13:19:40 -07:00
2026-06-22 13:03:11 -07:00
2026-06-11 18:16:39 -07:00
2026-06-11 18:16:39 -07:00
2026-06-21 15:35:01 -07:00
2026-06-11 22:37:26 -07:00
2026-06-12 02:49:17 -07:00
2026-06-22 11:11:25 -07:00
2026-06-22 14:38:33 -07:00
2026-06-15 20:10:53 -07:00
2026-06-19 14:42:26 +02:00
2026-06-21 13:35:25 -07:00
2026-06-20 19:13:42 -07:00
2026-06-18 20:29:01 +00:00
2026-06-22 11:11:25 -07:00
2026-06-22 15:58:27 -07:00
2026-06-17 17:20:53 -07:00
2026-06-22 14:28:39 -07:00
2026-06-21 14:04:18 +02:00
2026-06-05 15:41:13 -07:00
2026-06-22 13:03:11 -07:00
2026-06-22 19:33:28 +02:00
2026-06-15 21:53:47 -07:00
2026-06-13 21:43:39 -07:00
2026-06-22 11:11:25 -07:00
2026-06-19 12:47:53 -07:00
2026-06-22 11:11:25 -07:00
2026-06-22 22:08:15 +00:00
2026-06-17 10:00:42 -07:00
2026-06-12 16:58:42 -07:00
2026-06-15 15:12:26 -07:00
2026-06-12 19:52:49 +00:00
2026-06-18 14:09:38 +02:00
2026-06-22 13:19:40 -07:00
2026-06-22 03:39:14 +00:00
2026-06-22 11:11:25 -07:00
2026-06-04 09:53:08 -04:00
2026-06-22 13:19:40 -07:00
2026-06-05 17:36:18 -07:00
2026-06-22 13:03:11 -07:00
2026-06-22 14:16:48 -07:00
2026-06-04 09:53:08 -04:00
2026-06-22 17:43:08 +02:00
2026-06-22 10:27:23 -07:00
2026-06-18 16:13:07 -07:00
2026-06-22 15:58:27 -07:00
2026-06-21 12:33:21 +02:00
2026-06-22 11:11:25 -07:00
2026-06-22 11:11:25 -07:00
2026-06-22 19:33:28 +02:00
2026-06-12 19:52:49 +00:00
2026-06-15 08:28:02 -07:00
2026-06-11 18:16:39 -07:00
2026-06-17 19:16:18 +00:00
2026-06-22 11:11:25 -07:00
2026-06-20 19:13:42 -07:00
2026-06-22 11:11:25 -07:00
2026-06-22 11:11:25 -07:00
2026-06-22 21:05:50 +00:00
2026-06-18 15:06:23 -07:00
2026-06-13 21:43:39 -07:00
2026-06-13 21:43:39 -07:00
2026-06-18 11:04:30 -07:00
2026-06-23 00:19:54 +02:00
2026-06-22 14:24:02 -07:00
2026-06-11 18:16:39 -07:00
2026-06-04 09:16:03 -07:00