Commit 9adc809
authored
fix(code): add 1m context window beta header (#1332)
## Problem
two problems:
1. every session starts with ~150k tokens eaten
2. we support 1M context now, but the agent still compacts at 200k (which means code is unusable lol)
<!-- Who is this for and what problem does it solve? -->
<!-- Closes #ISSUE_ID -->
## Changes
does not solve the first problem!!!
but adds the `context-1m-2025-08-07` beta header to claude session options so we can actually use 1m context
docs: https://platform.claude.com/docs/en/build-with-claude/context-windows
related issue: Kilo-Org/kilocode#6300
<!-- What did you change and why? -->
<!-- If there are frontend changes, include screenshots. -->
## How did you test this?
manually

<!-- Describe what you tested -- manual steps, automated tests, or both. -->
<!-- If you're an agent, only list tests you actually ran. -->1 parent e8aa7f2 commit 9adc809
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| |||
0 commit comments