Commit 4a091cd
committed
fix(codex): pass maxRenderedContextChars to legacy mirrored-history fallback
The legacy mirrored-history fallback at run-attempt.ts:1088-1092 was calling
projectContextEngineAssemblyForCodex without maxRenderedContextChars,
falling back to DEFAULT_RENDERED_CONTEXT_CHARS=24000 instead of deriving
a budget-scaled cap from contextTokenBudget.
This fix copies the maxRenderedContextChars kwarg from the active-context-engine
branch (lines 952-957) into the legacy fallback call site, matching the
behavior added in PR #80761 for issue #80760.
Fixes #840841 parent e84b719 commit 4a091cd
2 files changed
Lines changed: 1710 additions & 710 deletions
0 commit comments