aboutsummaryrefslogtreecommitdiffstats
path: root/renderer/src/styles
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/styles
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/styles')
-rw-r--r--renderer/src/styles/globals.css29
1 files changed, 29 insertions, 0 deletions
diff --git a/renderer/src/styles/globals.css b/renderer/src/styles/globals.css
index 7a8ae45..0db62c2 100644
--- a/renderer/src/styles/globals.css
+++ b/renderer/src/styles/globals.css
@@ -621,6 +621,17 @@ html[data-theme="light"] .chat-input input:focus {
621 color: var(--text-secondary); 621 color: var(--text-secondary);
622} 622}
623 623
624.model-badge {
625 font-size: 11px;
626 font-family: var(--font-mono, monospace);
627 color: var(--text-secondary);
628 padding: 2px 6px;
629 border: 1px solid var(--border);
630 border-radius: 4px;
631 white-space: nowrap;
632 user-select: none;
633}
634
624.permission-toggle { 635.permission-toggle {
625 display: flex; 636 display: flex;
626 align-items: center; 637 align-items: center;
@@ -953,6 +964,24 @@ html[data-theme="light"] .settings-textarea:focus {
953 border-color: var(--warning); 964 border-color: var(--warning);
954} 965}
955 966
967/* ── Model Input ─────────────────────────────────────────────── */
968.settings-model-input {
969 width: 100%;
970 padding: 6px 8px;
971 background: var(--bg-secondary);
972 border: 1px solid var(--border);
973 border-radius: 4px;
974 color: var(--text-primary);
975 font-size: 13px;
976 font-family: var(--font-mono, monospace);
977 box-sizing: border-box;
978 transition: border-color 0.15s;
979}
980.settings-model-input:focus {
981 outline: none;
982 border-color: var(--accent);
983}
984
956/* ── Settings Actions Row ────────────────────────────────────── */ 985/* ── Settings Actions Row ────────────────────────────────────── */
957.settings-actions { 986.settings-actions {
958 display: flex; 987 display: flex;