Watch
0
0
Fork
You've already forked hyperhive
0

swarm ui: a stored claude login closes the dialog and shows a toast

The login dialog stayed open with a success line after the code was
accepted, though nothing is left to do in it. It now closes and a toast
says the login is stored. The toast is a new swarm-ui primitive: a short
note raised with showToast, rendered by a ToastHost at the app root, gone
after a few seconds or on click.
This commit is contained in:
iris 2026-11-09 20:50:32 +01:00
commit 73f875eab8

View file

@ -12,6 +12,7 @@ import {
leavesLoginRunning,
pastedCode,
startOutlivedDialog,
storedMessage,
} from "../src/agent/claude-login/ClaudeLoginSteps.ts";
test("the routes name the agent, escaped", () => {
@ -77,3 +78,7 @@ test("a pasted code is trimmed, and a blank one is nothing", () => {
assert.equal(pastedCode(" abc-def \n"), "abc-def");
assert.equal(pastedCode(" \n "), null);
});
test("the stored toast names the agent", () => {
assert.match(storedMessage("atlas"), /^Login stored\. atlas /);
});