Commit a032f5e
fix(compaction): use medium reasoning for codex summarizer instead of minimal
GPT-5.6 generation models dropped the "minimal" reasoning effort
(valid levels: low/medium/high/xhigh/max), and the pi-ai catalog does
not declare minimal as null in thinkingLevelMap, so clampThinkingLevel
passes it through and the OpenAI API rejects the compaction request
with a 400, surfacing as "context compaction failed".
Hardcode medium instead: supported by both old and new OpenAI models,
still keeps long thinking from eating the summary budget.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 542dd26 commit a032f5e
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
0 commit comments