diff --git a/.gitignore b/.gitignore
index d4a41496c..5f1d891dc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -47,5 +47,13 @@ usr/**/*
# for browser-use
agent_history.gif
-.agent/**
+.agents/**
.claude/**
+
+meta.json
+.lock
+**/*storage.sqlite
+
+hashes_codebase.json
+
+**/*plans
\ No newline at end of file
diff --git a/plugins/_model_config/extensions/webui/chat-nav-after/model-switcher.html b/plugins/_model_config/extensions/webui/chat-input-progress-start/model-switcher.html
similarity index 74%
rename from plugins/_model_config/extensions/webui/chat-nav-after/model-switcher.html
rename to plugins/_model_config/extensions/webui/chat-input-progress-start/model-switcher.html
index 2bae38a2b..477682630 100644
--- a/plugins/_model_config/extensions/webui/chat-nav-after/model-switcher.html
+++ b/plugins/_model_config/extensions/webui/chat-input-progress-start/model-switcher.html
@@ -1,4 +1,4 @@
-
+
@@ -17,12 +17,31 @@
:class="{ 'has-override': !!$store.modelConfig.switcherOverride }"
@click="showDropdown = !showDropdown"
@click.outside="showDropdown = false">
- neurology
+ neurology
-
+
+
+
+
+
+ Main
+
+
+
+
+
+ Util
+
+
+
+
+
+
+
@@ -99,6 +118,9 @@
}
.model-switcher-anchor {
position: relative;
+ display: flex;
+ align-items: center;
+ gap: 6px;
}
.model-switcher-btn {
width: auto;
@@ -108,6 +130,7 @@
border: none;
font-size: 0.75rem;
white-space: nowrap;
+ flex-shrink: 0;
}
.model-switcher-btn:hover {
border: none;
@@ -116,15 +139,53 @@
/* color: var(--color-text); */
}
.model-switcher-label {
- max-width: 160px;
+ max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
}
+
+ /* Inline active model pills */
+ .model-switcher-active-pills {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ flex-shrink: 1;
+ min-width: 0;
+ }
+ .model-pill {
+ display: flex;
+ align-items: center;
+ gap: 4px;
+ padding: 2px 8px;
+ border-radius: 12px;
+ background: color-mix(in srgb, var(--color-highlight) 8%, transparent);
+ border: 1px solid color-mix(in srgb, var(--color-highlight) 15%, transparent);
+ font-size: 0.68rem;
+ white-space: nowrap;
+ min-width: 0;
+ overflow: hidden;
+ }
+ .model-pill-role {
+ font-weight: 600;
+ opacity: 0.55;
+ font-size: 0.62rem;
+ text-transform: uppercase;
+ letter-spacing: 0.03em;
+ flex-shrink: 0;
+ }
+ .model-pill-name {
+ opacity: 0.85;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ min-width: 0;
+ }
+
+ /* Dropdown - opens upward, aligned to left */
.model-switcher-dropdown {
position: absolute;
bottom: calc(100% + 6px);
- right: 0;
- min-width: 250px;
+ left: 0;
+ min-width: 280px;
max-height: 550px;
overflow-y: auto;
background-color: var(--color-panel);
@@ -202,4 +263,11 @@
opacity: 0.6;
font-size: 0.75rem;
}
+
+ /* Responsive: hide pills on narrow screens */
+ @media (max-width: 600px) {
+ .model-switcher-active-pills {
+ display: none;
+ }
+ }
diff --git a/plugins/_model_config/webui/model-config-store.js b/plugins/_model_config/webui/model-config-store.js
index 64cd38df4..1256c4896 100644
--- a/plugins/_model_config/webui/model-config-store.js
+++ b/plugins/_model_config/webui/model-config-store.js
@@ -557,6 +557,21 @@ export const store = createStore("modelConfig", {
return o.preset_name || o.name || o.provider || 'Custom';
},
+ getActivePreset() {
+ const o = this.switcherOverride;
+ if (!o || !o.preset_name) return null;
+ return this.switcherPresets.find(p => p.name === o.preset_name) || null;
+ },
+
+ getActiveModels() {
+ const preset = this.getActivePreset();
+ if (!preset) return { main: null, utility: null };
+ return {
+ main: preset.chat?.name ? { provider: preset.chat.provider, name: preset.chat.name } : null,
+ utility: preset.utility?.name ? { provider: preset.utility.provider, name: preset.utility.name } : null,
+ };
+ },
+
// Text conversion utilities (accessible from templates via $store.modelConfig)
textToKwargs,
textToHeaders,
diff --git a/webui/components/chat/input/chat-bar-input.html b/webui/components/chat/input/chat-bar-input.html
index 4b205dbd2..0f41dd3b2 100644
--- a/webui/components/chat/input/chat-bar-input.html
+++ b/webui/components/chat/input/chat-bar-input.html
@@ -156,7 +156,20 @@
#chat-input::-webkit-scrollbar-thumb { background-color: rgba(155,155,155,0.5); border-radius: 6px; -webkit-transition: background-color 0.2s ease; transition: background-color 0.2s ease; }
#chat-input::-webkit-scrollbar-thumb:hover { background-color: rgba(155,155,155,0.7); }
#chat-input:focus { outline: 0.05rem solid rgba(155,155,155,0.5); font-size: 0.955rem; padding-top: 0.45rem; background-color: var(--color-input-focus); }
- #chat-input::placeholder { color: var(--color-text-muted); opacity: 0.7; }
+ #chat-input::placeholder { color: var(--color-text-muted); opacity: 0.7; transition: color 0.3s ease; }
+
+ /* Progress ghost text animation — gentle pulse on placeholder */
+ #chat-input.progress-active::placeholder {
+ animation: placeholder-pulse 2s ease-in-out infinite;
+ }
+ @keyframes placeholder-pulse {
+ 0%, 100% { opacity: 0.45; }
+ 50% { opacity: 0.85; }
+ }
+ #chat-input.progress-active {
+ border-color: color-mix(in srgb, var(--color-highlight) 20%, transparent);
+ outline-color: color-mix(in srgb, var(--color-highlight) 15%, transparent);
+ }
#expand-button {
position: absolute;
diff --git a/webui/components/chat/input/input-store.js b/webui/components/chat/input/input-store.js
index 047458d86..488e64229 100644
--- a/webui/components/chat/input/input-store.js
+++ b/webui/components/chat/input/input-store.js
@@ -10,6 +10,8 @@ const model = {
message: "",
/** Composer + menu (bottom actions moved into dropdown) */
chatMoreMenuOpen: false,
+ progressText: "",
+ progressActive: false,
toggleChatMoreMenu() {
this.chatMoreMenuOpen = !this.chatMoreMenuOpen;
@@ -32,6 +34,10 @@ const model = {
get inputPlaceholder() {
const state = this._getSendState();
if (state === "all") return "Press Enter to send queued messages";
+ // Show progress as ghost text when agent is working and input is empty
+ if (this.progressText && !this.message) {
+ return "|> " + this.progressText;
+ }
return "Type your message here...";
},
diff --git a/webui/components/chat/input/progress.html b/webui/components/chat/input/progress.html
index 041c338dc..dee1a4c4e 100644
--- a/webui/components/chat/input/progress.html
+++ b/webui/components/chat/input/progress.html
@@ -8,9 +8,10 @@
-
- |>
-
+
+
+
+
@@ -38,12 +39,10 @@