diff --git a/ui/src/ui/controllers/sessions.ts b/ui/src/ui/controllers/sessions.ts index 71c532e64..5c5077037 100644 --- a/ui/src/ui/controllers/sessions.ts +++ b/ui/src/ui/controllers/sessions.ts @@ -43,6 +43,7 @@ export async function patchSession( state: SessionsState, key: string, patch: { + label?: string | null; thinkingLevel?: string | null; verboseLevel?: string | null; reasoningLevel?: string | null; @@ -50,6 +51,7 @@ export async function patchSession( ) { if (!state.client || !state.connected) return; const params: Record = { key }; + if ("label" in patch) params.label = patch.label; if ("thinkingLevel" in patch) params.thinkingLevel = patch.thinkingLevel; if ("verboseLevel" in patch) params.verboseLevel = patch.verboseLevel; if ("reasoningLevel" in patch) params.reasoningLevel = patch.reasoningLevel; diff --git a/ui/src/ui/views/sessions.ts b/ui/src/ui/views/sessions.ts index f28abde44..7b5e97eb7 100644 --- a/ui/src/ui/views/sessions.ts +++ b/ui/src/ui/views/sessions.ts @@ -24,6 +24,7 @@ export type SessionsProps = { onPatch: ( key: string, patch: { + label?: string | null; thinkingLevel?: string | null; verboseLevel?: string | null; reasoningLevel?: string | null; @@ -195,7 +196,17 @@ function renderRow(
${canLink ? html`${displayName}` : displayName}
-
${row.label ?? ""}
+
+ { + const value = (e.target as HTMLInputElement).value.trim(); + onPatch(row.key, { label: value || null }); + }} + /> +
${row.kind}
${updated}
${formatSessionTokens(row)}