Skip to content

Agent Zero AI framework

Polish Launcher host access controls

Alessandrodf6065d5b1f6
diff --git a/plugins/_a0_connector/AGENTS.md b/plugins/_a0_connector/AGENTS.md
index b2fd50881..5dfed0a96 100644
--- a/plugins/_a0_connector/AGENTS.md
+++ b/plugins/_a0_connector/AGENTS.md
@@ -39,7 +39,10 @@
- The `chat-top-end` Launcher gateway extension renders only when the user agent
includes `A0-Launcher/`. It may show status, master/scope controls,
preparation errors, and Emergency disconnect; standard browser sessions must
- not expose it.
+ not expose it. Keep its trigger icon-only at rest and reveal the status label
+ on hover, keyboard focus, or while open. Connected and disconnected states
+ share the computer glyph; the adjacent status dot communicates connectivity.
+ Keep the open popover above the compact right-canvas rail.
- File operation results may arrive as chunked JSON/base64
`connector_file_op_result` frames; resolve the pending file operation only
after all chunks for the `op_id` are assembled.
diff --git a/plugins/_a0_connector/extensions/webui/chat-top-end/launcher-gateway.html b/plugins/_a0_connector/extensions/webui/chat-top-end/launcher-gateway.html
index dac03c61f..d762e1ed4 100644
--- a/plugins/_a0_connector/extensions/webui/chat-top-end/launcher-gateway.html
+++ b/plugins/_a0_connector/extensions/webui/chat-top-end/launcher-gateway.html
@@ -15,7 +15,7 @@
<button
type="button"
class="launcher-gateway-trigger"
- :class="`is-${$store.launcherGateway.state}`"
+ :class="`is-${$store.launcherGateway.state}${$store.launcherGateway.open ? ' is-open' : ''}`"
:title="`Host access: ${$store.launcherGateway.stateLabel}`"
:aria-label="`Host access: ${$store.launcherGateway.stateLabel}`"
aria-haspopup="dialog"
@@ -92,15 +92,27 @@
</div>
<style>
+ #time-date-container:has(.launcher-gateway-trigger.is-open) { z-index: 3500; }
.launcher-gateway-root { position: relative; }
.launcher-gateway-trigger {
- display: inline-flex; align-items: center; gap: .35rem; min-height: 2rem;
+ display: inline-flex; align-items: center; gap: 0; min-height: 2rem;
padding: .25rem .55rem; border: 1px solid var(--color-border); border-radius: 999px;
color: var(--color-text); background: color-mix(in srgb, var(--color-panel) 92%, transparent);
cursor: pointer; font: inherit; font-size: .75rem;
}
.launcher-gateway-trigger .material-symbols-outlined { font-size: 1rem; }
- .launcher-gateway-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #7b8491; }
+ .launcher-gateway-trigger-label {
+ max-width: 0; margin-left: 0; overflow: hidden; opacity: 0; white-space: nowrap;
+ transition: max-width 180ms cubic-bezier(.4, 0, .2, 1),
+ margin-left 180ms cubic-bezier(.4, 0, .2, 1),
+ opacity 120ms ease-out;
+ }
+ .launcher-gateway-root:hover .launcher-gateway-trigger-label,
+ .launcher-gateway-trigger:focus-visible .launcher-gateway-trigger-label,
+ .launcher-gateway-trigger.is-open .launcher-gateway-trigger-label {
+ max-width: 8rem; margin-left: .35rem; opacity: 1;
+ }
+ .launcher-gateway-dot { width: .45rem; height: .45rem; margin-right: .35rem; border-radius: 50%; background: #7b8491; }
.launcher-gateway-trigger.is-connected .launcher-gateway-dot { background: #45b86b; }
.launcher-gateway-trigger.is-connecting .launcher-gateway-dot { background: #5b9cff; }
.launcher-gateway-trigger.is-paused .launcher-gateway-dot { background: #d6a43d; }
@@ -127,5 +139,7 @@
.launcher-gateway-empty { margin: .7rem 0 0; color: var(--color-text-secondary); font-size: .78rem; }
.launcher-gateway-disconnect { width: 100%; margin-top: .75rem; padding: .48rem .65rem; border: 1px solid color-mix(in srgb, #db5b61 55%, var(--color-border)); border-radius: .45rem; background: transparent; color: #db5b61; cursor: pointer; }
.launcher-gateway-disconnect:disabled { opacity: .55; cursor: default; }
- @media (max-width: 700px) { .launcher-gateway-trigger-label { display: none; } }
+ @media (prefers-reduced-motion: reduce) {
+ .launcher-gateway-trigger-label { transition: none; }
+ }
</style>
diff --git a/plugins/_a0_connector/webui/launcher-gateway-store.js b/plugins/_a0_connector/webui/launcher-gateway-store.js
index 7de3579ae..d5512f332 100644
--- a/plugins/_a0_connector/webui/launcher-gateway-store.js
+++ b/plugins/_a0_connector/webui/launcher-gateway-store.js
@@ -44,9 +44,9 @@ const model = {
needs_action: "warning",
error: "error",
multiple_hosts: "devices",
- disconnected: "computer_off",
+ disconnected: "computer",
};
- return icons[this.state] || "computer_off";
+ return icons[this.state] || "computer";
},
get hostLabel() {