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
+3
View File
@@ -242,6 +242,7 @@ export function registerTuiCommand(program: Command): void {
agent,
hookEngine,
modelProviderConfigs,
contextThresholdPct: config.compaction.threshold_pct,
onExit: cleanup,
});
} else {
@@ -257,6 +258,7 @@ export function registerTuiCommand(program: Command): void {
pairingManager,
localProviders: config.models.local_providers,
modelProviderConfigs,
contextThresholdPct: config.compaction.threshold_pct,
currentLocalProvider: config.models.local?.provider,
onTransfer: (target) => {
if (target === 'telegram') {
@@ -290,6 +292,7 @@ export function registerTuiCommand(program: Command): void {
agent,
hookEngine,
modelProviderConfigs,
contextThresholdPct: config.compaction.threshold_pct,
onExit: cleanup,
});
return;