chore(context): Apply cruft removal and strict hyperparameter types

This commit is contained in:
Your Name
2026-04-05 21:31:43 +00:00
parent d7e96d1d1c
commit a1f2af0e9d
5 changed files with 42 additions and 18 deletions
+29
View File
@@ -2482,6 +2482,35 @@ const SETTINGS_SCHEMA = {
default: {},
showInDialog: false,
properties: {
maxPressureStrategy: {
type: 'string',
label: 'Max Pressure Strategy',
category: 'Context Management',
requiresRestart: true,
default: 'truncate',
description: 'Action to take when hitting the synchronous token ceiling.',
showInDialog: false,
enum: ['truncate', 'compress', 'rollingSummarizer'],
},
gcTarget: {
type: 'string',
label: 'GC Target',
category: 'Context Management',
requiresRestart: true,
default: 'incremental',
description: 'The target floor for synchronous context shedding.',
showInDialog: false,
enum: ['incremental', 'freeNTokens', 'max'],
},
freeTokensTarget: {
type: 'number',
label: 'Free Tokens Target',
category: 'Context Management',
requiresRestart: true,
default: undefined,
description: 'Amount of tokens to free when gcTarget is freeNTokens.',
showInDialog: false,
},
maxTokens: {
type: 'number',
label: 'Max Tokens',