Skip to content

Agent Zero AI framework

Stabilize WebUI mount geometry

Alessandrodec6df661f83
diff --git a/webui/components/welcome/AGENTS.md b/webui/components/welcome/AGENTS.md
index c6d0112ea..e8d13521f 100644
--- a/webui/components/welcome/AGENTS.md
+++ b/webui/components/welcome/AGENTS.md
@@ -18,6 +18,7 @@
- Do not show setup prompts for already configured plugins when backend status can prevent it.
- Do not replace the welcome composer with blocking model setup UI; missing model setup is deferred to the chat thread on first send.
- The welcome screen mounts the shared chat composer to start a new chat; keep it mutually exclusive with the normal chat input DOM.
+- Reserve the welcome composer's final minimum height before its nested input components hydrate.
- Render `system-resources` as the dedicated System Resources panel, not as a generic alert banner.
- Utility quick actions from welcome must keep the first screen intact; use modal/floating entry points instead of docking the right canvas beside welcome content.
diff --git a/webui/components/welcome/welcome-screen.html b/webui/components/welcome/welcome-screen.html
index d34d22056..5e600ca6e 100644
--- a/webui/components/welcome/welcome-screen.html
+++ b/webui/components/welcome/welcome-screen.html
@@ -237,6 +237,7 @@
.welcome-composer {
width: 100%;
+ min-height: 4.9rem;
}
.welcome-composer > x-component,
diff --git a/webui/index.css b/webui/index.css
index 3eacf6d7d..5514be39a 100644
--- a/webui/index.css
+++ b/webui/index.css
@@ -311,6 +311,23 @@ img {
overflow: hidden;
}
+.sidebar-slot {
+ flex: 0 0 250px;
+ min-width: 250px;
+ height: 100%;
+}
+
+.sidebar-slot:has(#left-panel) {
+ display: contents;
+}
+
+@media (max-width: 768px) {
+ .sidebar-slot {
+ flex-basis: 0;
+ min-width: 0;
+ }
+}
+
.panel {
display: -webkit-flex;
display: flex;