Skip to content

Agent Zero AI framework

Polish Launcher host access popover

Alessandroe2fd320ac623
diff --git a/plugins/_a0_connector/AGENTS.md b/plugins/_a0_connector/AGENTS.md
index 4d7fb2df7..2585e9333 100644
--- a/plugins/_a0_connector/AGENTS.md
+++ b/plugins/_a0_connector/AGENTS.md
@@ -32,7 +32,8 @@
socket with the same ID replaces stale state; distinct simultaneous IDs fail
closed as Multiple hosts.
- `connector_gateway_control` and `connector_gateway_control_result` cover
- master state, complete scope replacement, and emergency disconnect. Protected
+ master state, complete scope replacement, and Disconnect
+ (`emergency_disconnect` on the wire). Protected
WebUI mutations require CSRF, await the matching acknowledgement, and return
refreshed status. Never let the WebUI select a host folder or personal
browser profile.
@@ -41,7 +42,7 @@
older gateway declarations without `file_write` read/write compatible.
- The `sync-status-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
+ preparation errors, and Disconnect; standard browser sessions must
not expose it. Keep its trigger inside the existing sync indicator, render one
computer glyph per connected Launcher gateway, and retain one muted glyph
while disconnected so the control remains reachable. Do not add a native
diff --git a/plugins/_a0_connector/extensions/webui/sync-status-end/launcher-gateway.html b/plugins/_a0_connector/extensions/webui/sync-status-end/launcher-gateway.html
index 4dae0c5d8..c921d5cae 100644
--- a/plugins/_a0_connector/extensions/webui/sync-status-end/launcher-gateway.html
+++ b/plugins/_a0_connector/extensions/webui/sync-status-end/launcher-gateway.html
@@ -113,7 +113,7 @@
x-show="$store.launcherGateway.gateway"
:disabled="$store.launcherGateway.saving"
@click="$store.launcherGateway.emergencyDisconnect()"
- >Emergency disconnect</button>
+ >Disconnect</button>
</section>
</div>
@@ -136,7 +136,7 @@
.launcher-gateway-host-icon.is-placeholder { opacity: .55; }
.launcher-gateway-popover {
position: absolute; top: calc(100% + .45rem); right: 0; z-index: 1200; width: min(20rem, calc(100vw - 2rem));
- padding: .8rem; border: 1px solid var(--color-border); border-radius: var(--border-radius);
+ padding: .8rem; border: 1px solid var(--color-border); border-radius: var(--border-radius-sm);
background: var(--color-panel); box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
}
.launcher-gateway-header { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
diff --git a/tests/test_a0_connector_launcher_gateway.py b/tests/test_a0_connector_launcher_gateway.py
index 1bf3d212d..2efb40722 100644
--- a/tests/test_a0_connector_launcher_gateway.py
+++ b/tests/test_a0_connector_launcher_gateway.py
@@ -78,7 +78,10 @@ def test_launcher_gateway_indicator_joins_sync_status_without_visual_noise() ->
assert "launcher-gateway-trigger-label" not in source
assert "launcher-gateway-dot" not in source
assert ":title=" not in source
- assert "border-radius: var(--border-radius);" in source
+ assert ">Disconnect</button>" in source
+ assert "Emergency disconnect" not in source
+ popover_css = source.split(".launcher-gateway-popover {", 1)[1].split("}", 1)[0]
+ assert "border-radius: var(--border-radius-sm);" in popover_css
def test_launcher_gateway_is_fallback_after_context_bound_cli() -> None: