feat: allow suppressing Codex gpt-5.5 autoraise notice

This commit is contained in:
Shashwat Gokhe 2026-07-04 17:04:39 +05:30 committed by kshitij
parent e02fc28280
commit 86a0c5553e
4 changed files with 97 additions and 3 deletions

View file

@ -85,6 +85,7 @@ compression:
target_ratio: 0.20 # How much of threshold to keep as tail (default: 0.20)
protect_last_n: 20 # Minimum protected tail messages (default: 20)
codex_gpt55_autoraise: true # gpt-5.5 on Codex OAuth: raise trigger to 85% (default: true)
codex_gpt55_autoraise_notice: true # Show the one-time autoraise notice (default: true)
# Summarization model/provider configured under auxiliary:
auxiliary:
@ -103,6 +104,7 @@ auxiliary:
| `protect_last_n` | `20` | ≥1 | Minimum number of recent messages always preserved |
| `protect_first_n` | `3` | (hardcoded) | System prompt + first exchange always preserved |
| `codex_gpt55_autoraise` | `true` | bool | Raise the trigger to 85% for gpt-5.5 on the ChatGPT Codex OAuth route (see below). Set `false` to keep the global `threshold` |
| `codex_gpt55_autoraise_notice` | `true` | bool | Show the one-time Codex gpt-5.5 autoraise notice. Set `false` to keep the 85% autoraise but suppress the banner |
### Codex gpt-5.5 threshold autoraise
@ -119,6 +121,12 @@ your global `threshold`. To opt back down to the global value:
hermes config set compression.codex_gpt55_autoraise false
```
To keep the 85% autoraise but hide only the one-time notice:
```bash
hermes config set compression.codex_gpt55_autoraise_notice false
```
### Computed Values (for a 200K context model at defaults)
```