aboutsummaryrefslogtreecommitdiffstats
path: root/renderer/src/components/ActionBar.tsx
diff options
context:
space:
mode:
authorClawd <ai@clawd.bot>2026-03-01 08:31:52 -0800
committerClawd <ai@clawd.bot>2026-03-01 08:31:52 -0800
commitd44d0f61e4026da35c0d1a4acb87ba71ed6cd599 (patch)
tree4d3eb7c1db6d71e25634848078ad1cfde57bad6d /renderer/src/components/ActionBar.tsx
parentafdf3d57cb7ae4cbf0a519d1b53872f151ecba87 (diff)
feat(settings): add configurable model selection
- Add Model settings section with free-text input for model override - Pass configured model through to SDK query() calls - Display active model badge in ActionBar next to token usage - Seed model state from DB on mount, update from system:init events - Empty/unset value uses SDK default (no breaking change)
Diffstat (limited to 'renderer/src/components/ActionBar.tsx')
-rw-r--r--renderer/src/components/ActionBar.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/renderer/src/components/ActionBar.tsx b/renderer/src/components/ActionBar.tsx
index 22f34b4..d270583 100644
--- a/renderer/src/components/ActionBar.tsx
+++ b/renderer/src/components/ActionBar.tsx
@@ -11,6 +11,7 @@ interface ActionBarProps {
11 onSubmit: () => void; 11 onSubmit: () => void;
12 onPermissionModeChange: (mode: PermissionMode) => void; 12 onPermissionModeChange: (mode: PermissionMode) => void;
13 disabled: boolean; 13 disabled: boolean;
14 modelName?: string | null;
14} 15}
15 16
16export function ActionBar({ 17export function ActionBar({
@@ -23,6 +24,7 @@ export function ActionBar({
23 onSubmit, 24 onSubmit,
24 onPermissionModeChange, 25 onPermissionModeChange,
25 disabled, 26 disabled,
27 modelName,
26}: ActionBarProps) { 28}: ActionBarProps) {
27 const totalTokens = tokenUsage.inputTokens + tokenUsage.outputTokens; 29 const totalTokens = tokenUsage.inputTokens + tokenUsage.outputTokens;
28 const maxTokens = 200000; 30 const maxTokens = 200000;
@@ -52,6 +54,13 @@ export function ActionBar({
52 </span> 54 </span>
53 </div> 55 </div>
54 56
57 {/* ── Model badge ── */}
58 {modelName && (
59 <span className="model-badge" title="Active model">
60 {modelName}
61 </span>
62 )}
63
55 {phase === "implement" && ( 64 {phase === "implement" && (
56 <label className="permission-toggle"> 65 <label className="permission-toggle">
57 <input 66 <input