fix: cap context window resolution (#6187) (thanks @iamEvanYT)

This commit is contained in:
Ayaan Zaidi
2026-02-01 19:49:35 +05:30
committed by Ayaan Zaidi
parent 5d3c898a94
commit 0992c5a809
7 changed files with 50 additions and 58 deletions

View File

@@ -122,7 +122,7 @@ export type AgentDefaultsConfig = {
* Include elapsed time in message envelopes ("on" | "off", default: "on").
*/
envelopeElapsed?: "on" | "off";
/** Optional display-only context window override (used for % in status UIs). */
/** Optional context window cap (used for runtime estimates + status %). */
contextTokens?: number;
/** Optional CLI backends for text-only fallback (claude-cli, etc.). */
cliBackends?: Record<string, CliBackendConfig>;