Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(agentic-ide): make the toolbar account chip open the switcher
Ruben Lütked354eec8fedf
diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceSettings.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceSettings.test.tsxindex 551d981fc6..6874f0b53e 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceSettings.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceSettings.test.tsx@@ -131,6 +131,20 @@ describe("the workspace's account chip", () => {// Codex still has one login, so it says nothing.expect(screen.queryByTestId("active-account-codex")).toBeNull();});++ it("opens the switcher when the chip itself is clicked", async () => {+ // The chip reads as a button, so it must behave as one — its first life as+ // a passive label made the switch look broken (2026-07-31 report): the one+ // clickable pixel was the gear beside it.+ vi.mocked(fetchAgentAccounts).mockResolvedValue(accountsResponse() as never);+ render(+ <WorkspaceSettings+ accounts={ideAccounts({ active_label: "Second seat", account_count: 2 })}+ />,+ );+ fireEvent.click(screen.getByTestId("active-account-claude"));+ await waitFor(() => expect(screen.getByTestId("agentic-settings")).toBeTruthy());+ });});describe("switching the account from inside the workspace", () => {diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceSettings.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceSettings.tsxindex da9f43428a..cb86c0afed 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceSettings.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceSettings.tsx@@ -81,16 +81,26 @@ export function WorkspaceSettings({return (<div className="flex shrink-0 items-center gap-2">+ {/* The chip looks like a button, so it must BE one: it names the plan the+ next terminal spends, and clicking it opens the switcher. Its first+ life as a passive <span> read as "the switch is broken" — the one+ interactive pixel was the gear beside it. */}{chips.map((account) => (- <span+ <buttonkey={account.agent}+ type="button"data-testid={`active-account-${account.agent}`}- title={`New ${account.display_name} terminals open on ${account.active_label}. Panes already running keep theirs.`}- className="hidden max-w-[16rem] items-center gap-1.5 rounded-lg border border-border px-2 py-1 text-[11px] text-muted-foreground xl:flex"+ onClick={() => setOpen(true)}+ title={`New ${account.display_name} terminals open on ${account.active_label}. Panes already running keep theirs. Click to switch.`}+ aria-label={`Switch which ${account.display_name} subscription new terminals use`}+ className={cn(+ "hidden max-w-[16rem] items-center gap-1.5 rounded-lg border border-border px-2 py-1 text-[11px] text-muted-foreground transition-colors xl:flex",+ "hover:border-primary/40 hover:text-foreground",+ )}><Users className="h-3 w-3 shrink-0 text-primary" /><span className="truncate">{account.active_label}</span>- </span>+ </button>))}<Dialog.Root open={open} onOpenChange={setOpen}>