Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(agents): expose thinking level in properties sidebar (MUL-8594) (#9923)

Bohan Jiangacf784b7dcb0
diff --git a/packages/views/agents/components/agent-properties-panel.tsx b/packages/views/agents/components/agent-properties-panel.tsx
index 1c14be518c..775ca4d6a9 100644
--- a/packages/views/agents/components/agent-properties-panel.tsx
+++ b/packages/views/agents/components/agent-properties-panel.tsx
@@ -25,6 +25,7 @@ import { AgentPresenceIndicator } from "./agent-presence-indicator";
import { CHIP_CLASS } from "./inspector/chip";
import { ModelPicker } from "./inspector/model-picker";
import { RuntimePicker } from "./inspector/runtime-picker";
+import { ThinkingPropRow } from "./inspector/thinking-prop-row";
import { useExecutionControls } from "./inspector/use-execution-controls";
import { AgentPerformanceSummary, SuccessRate } from "./tabs/activity-tab";
@@ -36,7 +37,7 @@ const ACCESS_ICONS = {
/**
* The agent page's right panel: what it is and where it runs, with the
- * runtime and model editable in place.
+ * runtime, model, and thinking level editable in place.
*/
export function AgentPropertiesPanel({
agent,
@@ -154,15 +155,26 @@ export function AgentPropertiesPanel({
</Value>
</ObjectProperty>
) : (
- <ObjectProperty label={t(($) => $.inspector.prop_model)}>
- <ModelPicker
+ <>
+ <ObjectProperty label={t(($) => $.inspector.prop_model)}>
+ <ModelPicker
+ runtimeId={agent.runtime_id}
+ runtimeOnline={canDiscoverRuntimeModels}
+ value={agent.model ?? ""}
+ canEdit={canEdit}
+ onChange={changeModel}
+ />
+ </ObjectProperty>
+ <ThinkingPropRow
runtimeId={agent.runtime_id}
runtimeOnline={canDiscoverRuntimeModels}
- value={agent.model ?? ""}
+ provider={runtime?.provider ?? ""}
+ model={agent.model ?? ""}
+ value={agent.thinking_level ?? ""}
canEdit={canEdit}
- onChange={changeModel}
+ onChange={(thinkingLevel) => update({ thinking_level: thinkingLevel })}
/>
- </ObjectProperty>
+ </>
)}
<ObjectProperty label={t(($) => $.columns.access)}>
diff --git a/packages/views/agents/components/inspector/thinking-prop-row.tsx b/packages/views/agents/components/inspector/thinking-prop-row.tsx
index 1ccd9e3e95..88d1bc8a66 100644
--- a/packages/views/agents/components/inspector/thinking-prop-row.tsx
+++ b/packages/views/agents/components/inspector/thinking-prop-row.tsx
@@ -4,7 +4,7 @@ import { useQuery } from "@tanstack/react-query";
import type { ReactNode } from "react";
import type { RuntimeModel } from "@multica/core/types";
import { runtimeModelsOptions } from "@multica/core/runtimes";
-import { PropRow } from "../../../common/prop-row";
+import { ObjectProperty } from "../../../layout/object-page";
import { SettingsRow } from "../../../settings/components/settings-layout";
import { useT } from "../../../i18n";
import { ThinkingPicker } from "./thinking-picker";
@@ -14,7 +14,7 @@ import {
} from "./model-capability";
/**
- * Thinking row for the agent inspector. Hidden when the active model has
+ * Thinking row for the agent properties panel. Hidden when the active model has
* no `supported_levels` advertised AND nothing is persisted, so providers
* that don't expose reasoning never surface an empty row. If the agent
* already has a `thinking_level` saved (model swap into a non-thinking
@@ -26,9 +26,9 @@ import {
* state honestly.
*
* Reuses the shared runtime-models query so it hits the same 60s cache
- * as the model picker; no extra round-trip on the inspector's hot path.
+ * as the model picker; no extra round-trip on the panel's hot path.
* The sibling ModelPicker mounts unconditionally next to this row, so
- * the shared query subscription is established by the inspector mount
+ * the shared query subscription is established by the panel mount
* itself — returning null here does NOT cancel discovery.
*/
export function ThinkingPropRow({
@@ -61,7 +61,7 @@ export function ThinkingPropRow({
if (levels.length === 0 && !value) return null;
return (
- <PropRow label={t(($) => $.inspector.prop_thinking)} interactive={false}>
+ <ObjectProperty label={t(($) => $.inspector.prop_thinking)}>
<ThinkingPicker
value={value}
levels={levels}
@@ -69,7 +69,7 @@ export function ThinkingPropRow({
allowClear={levels.length === 0 || !thinkingLevelRequiredForProvider(provider)}
onChange={onChange}
/>
- </PropRow>
+ </ObjectProperty>
);
}