feat(webui): configure idle compaction timeout (NAN-305) (#6383)

* feat(webui): configure idle compaction timeout (NAN-305)

* fix(webui): clarify idle compaction timeout and tradeoff

* refactor(webui): remove unused idle compaction minimum

* fix(webui): match idle compaction loading skeleton
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-22 13:41:05 +08:00
1 parent c6babb20e8
commit f11ea5f9e0
25 files changed
+523 -15

No files matched your search

@@ -1,7 +1,7 @@
export interface RuntimeConfigField {
group: string;
path: string;
kind: "toggle" | "text" | "nullable" | "number" | "duration" | "boolean" | "select" | "list" | "preset";
kind: "toggle" | "text" | "nullable" | "number" | "duration" | "boolean" | "select" | "list" | "preset" | "idle-compaction";
options?: string[];
when?: { path: string; value: string | boolean | string[] };
manual?: boolean;
@@ -39,6 +39,7 @@ export const RUNTIME_CONFIG_FIELDS: RuntimeConfigField[] = [
{ group: "execution", path: "agents.defaults.tool_hint_max_length", kind: "number", min: 20, max: 500 },
{ group: "execution", path: "tools.max_session_messages_per_minute", kind: "number", min: 1 },
{ group: "sessions", path: "agents.defaults.unified_session", kind: "boolean" },
{ group: "sessions", path: "agents.defaults.session_ttl_minutes", kind: "idle-compaction", manual: true },
{ group: "tools", path: "tools.exec.enable", kind: "boolean" },
{ group: "tools", path: "tools.file.enable", kind: "boolean" },
{ group: "web", path: "tools.web.enable", kind: "boolean" },