Symptom
- Model:
gpt-6-astra
- Action: attempting to resume an existing session throws
ModelUsabilityBudgetError
- Error:
target context window 850000 tokens is 302965 tokens short of the 1152965-token requirement
Highlight: requiredTokens = 1,152,965 (~1.15M)
The resume admission check demands 1,152,965 tokens, which exceeds the model's 850,000-token context window by 302,965 tokens:
| Component |
Tokens |
| Live context |
965,016 |
| System prompt |
5,810 |
| Active tool schemas |
11,947 |
| Output reserve |
128,000 |
| Compaction reserve |
34,000 |
| Speculation lead |
0 |
| Safety margin (default profile) |
8,192 |
| Required total |
1,152,965 |
| Model context window |
850,000 |
| Shortfall |
302,965 |
In other words, the live context alone (~965K) plus the fixed reserves (~170K) already sum to ~1.15M, so resume is rejected at the admission stage before any work can proceed.
Full projection
{
"model": "gpt-6-astra",
"contextWindow": 850000,
"liveContextTokens": 965016,
"systemPromptTokens": 5810,
"activeToolSchemaTokens": 11947,
"outputReserveTokens": 128000,
"compactionReserveTokens": 34000,
"speculationLeadTokens": 0,
"safetyMarginTokens": 8192,
"safetyMarginProfile": "default",
"requiredTokens": 1152965,
"shortfallTokens": 302965,
"usable": false,
"admission": "resume"
}
Stack trace
at assertModelUsable (agent-session.js:3715:19)
at createAgentSession (sdk.js:373:17)
Environment
- Bun v1.4.2 (Linux x64)
- omo-ai installed via mise (node 26.7.0 path)
Expected behavior
- Before rejecting resume outright, shrink the live context via compaction (or adjust the reserve calculation) so the session can resume.
- At minimum, guide the user to a recovery path (e.g. compact, then retry) instead of a hard admission failure with no actionable next step.
Symptom
gpt-6-astraModelUsabilityBudgetErrortarget context window 850000 tokens is 302965 tokens short of the 1152965-token requirementHighlight: requiredTokens = 1,152,965 (~1.15M)
The resume admission check demands 1,152,965 tokens, which exceeds the model's 850,000-token context window by 302,965 tokens:
In other words, the live context alone (~965K) plus the fixed reserves (~170K) already sum to ~1.15M, so resume is rejected at the admission stage before any work can proceed.
Full projection
{ "model": "gpt-6-astra", "contextWindow": 850000, "liveContextTokens": 965016, "systemPromptTokens": 5810, "activeToolSchemaTokens": 11947, "outputReserveTokens": 128000, "compactionReserveTokens": 34000, "speculationLeadTokens": 0, "safetyMarginTokens": 8192, "safetyMarginProfile": "default", "requiredTokens": 1152965, "shortfallTokens": 302965, "usable": false, "admission": "resume" }Stack trace
Environment
Expected behavior