Commit ebdb0f2
authored
fix: add GPT-5.5 aliases to sandbox compaction (#3039)
### Summary
Adds GPT-5.5 snapshot and pro aliases to the sandbox compaction model
context-window map so compaction threshold calculation recognizes them
as 1,047,576-token models.
### Test plan
- `uv run ruff check src/agents/sandbox/capabilities/compaction.py
tests/sandbox/test_compaction.py`
- `uv run pytest tests/sandbox/test_compaction.py`
- Verified `CompactionModelInfo.for_model()` locally for
`gpt-5.5-2026-04-23`, `gpt-5.5-pro`, and `gpt-5.5-pro-2026-04-23`
- Verified the model IDs exist via the OpenAI Models API; also ran a
live Responses API smoke with `gpt-5.5-2026-04-23`
### Issue number
N/A
### Checks
- [x] I've added new tests (if relevant)
- [ ] I've added/updated the relevant documentation
- [ ] I've run `make lint` and `make format`
- [x] I've made sure tests pass1 parent b3688db commit ebdb0f2
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
0 commit comments