feat(tui): use configured compaction threshold for /context output

This commit is contained in:
William Valentin
2026-02-16 18:10:54 -08:00
parent 409ab04ca1
commit fc6a79ed90
7 changed files with 53 additions and 4 deletions
+2
View File
@@ -17,6 +17,7 @@ export interface FullscreenTuiConfig {
agent?: NativeAgent;
hookEngine?: HookEngine;
modelProviderConfigs?: Partial<Record<ModelProvider, ModelConfig>>;
contextThresholdPct?: number;
onExit?: () => void;
}
@@ -40,6 +41,7 @@ export async function startFullscreenTui(config: FullscreenTuiConfig): Promise<v
agent: config.agent,
hookEngine: config.hookEngine,
modelProviderConfigs: config.modelProviderConfigs,
contextThresholdPct: config.contextThresholdPct,
onExit: config.onExit,
}),
);