feat(tui): use configured compaction threshold for /context output
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user