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
feat(ide): right side panel with a live agents overview
rubenluetke10-beep14865a588aff
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsxindex e64d551787..528236ec16 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx@@ -855,11 +855,11 @@ export function AgenticTerminal({// module exists to prevent.fontFamily: TERMINAL_FONT_STACK,fontSize: fontSizeRef.current,- // A dense console line height, like a standalone terminal: at 1.3 a pane- // showed far fewer rows than the same window in a native terminal, which- // read as "zoomed in". Kept integral-friendly: fractional cell heights- // round differently per row and make a redrawn TUI box look ragged.- lineHeight: 1.2,+ // Roomier than a console default — the single biggest readability win for+ // an agent that prints prose, diffs and file trees rather than log lines.+ // Kept integral-friendly: fractional cell heights round differently per+ // row and make a redrawn TUI box look ragged.+ lineHeight: 1.3,// Zero, not 0.2: extra tracking is added per cell, so a box-drawing frame// and the text under it accumulate different sub-pixel offsets and the// frame visibly bends. Monospace legibility comes from the line height.diff --git a/jarvis/ui/web/frontend/src/components/agentic/IdeWorkspaceAgents.tsx b/jarvis/ui/web/frontend/src/components/agentic/IdeWorkspaceAgents.tsxdeleted file mode 100644index 30057d43a8..0000000000--- a/jarvis/ui/web/frontend/src/components/agentic/IdeWorkspaceAgents.tsx+++ /dev/null@@ -1,125 +0,0 @@-import { useIdeChatStore } from "@/store/ideChat";-import { useIdeProjectsStore } from "@/store/ideProjects";-import { useWorkspacePanes } from "@/store/workspacePanes";-import type { WorkspacePaneRow } from "@/lib/agenticIdeApi";-import { cn } from "@/lib/utils";--type AgentDotKind = "working" | "waiting" | "idle" | "error";--function dotKindFor(pane: WorkspacePaneRow): AgentDotKind {- if (pane.status === "error" || pane.activity === "failed") return "error";- if (pane.activity === "asking") return "waiting";- if (- pane.activity === "working" ||- pane.activity === "starting" ||- pane.status === "pending"- )- return "working";- return "idle";-}--const DOT_STYLE: Record<AgentDotKind, { dot: string; label: string; ping: boolean }> = {- working: { dot: "bg-success", label: "working", ping: false },- waiting: { dot: "bg-warning", label: "needs input", ping: true },- idle: { dot: "bg-muted-foreground/40", label: "idle", ping: false },- error: { dot: "bg-destructive", label: "error", ping: false },-};--function dotLabel(pane: WorkspacePaneRow, kind: AgentDotKind): string {- if (kind === "working") return pane.activity === "starting" || pane.status === "pending" ? "starting" : "working";- if (kind === "waiting") return "needs input";- if (kind === "error") return pane.activity === "failed" ? "failed" : "error";- if (pane.status === "exited") return "exited";- return pane.worked ? "done" : "idle";-}--/**- * Compact agents list for the active workspace tab.- *- * Sits under Workspaces in the sidebar while the Agentic IDE is on screen:- * one row per coding agent of the workspace at the front — status dot, pane- * name and agent — switching with the tab because it filters on the active- * workspace id. Rows stay current through the shared pane store (poll plus- * socket activity events), and a click asks the IDE view to bring that pane- * forward via `requestPane`.- */-export function IdeWorkspaceAgents() {- const activeWorkspaceId = useIdeProjectsStore((state) => state.activeWorkspaceId);- const requestPane = useIdeChatStore((state) => state.requestPane);- const stagedPane = useIdeChatStore((state) => state.stagedPane);- const panes = useWorkspacePanes();-- const mine = (activeWorkspaceId- ? panes.filter(- (pane) => pane.workspace_id === activeWorkspaceId && !pane.archived && pane.agent !== "shell",- )- : []- ).slice().sort((a, b) => a.name.localeCompare(b.name, undefined, { numeric: true }));-- return (- <section- data-testid="ide-workspace-agents"- data-workspace={activeWorkspaceId ?? undefined}- aria-label="Agents in this workspace"- className="mx-2 mt-2 shrink-0 overflow-hidden rounded-2xl border border-border/50 bg-card/40 p-2 pb-3"- >- <div className="flex items-center justify-between px-2 pb-2 pt-1">- <span className="text-[17px] font-semibold text-foreground">Agents</span>- {mine.length > 0 && (- <span- data-testid="ide-workspace-agents-count"- aria-label={`${mine.length} ${mine.length === 1 ? "agent" : "agents"}`}- className="rounded-md bg-background/50 px-1.5 py-0.5 text-xs tabular-nums text-muted-foreground"- >- {mine.length}- </span>- )}- </div>- {activeWorkspaceId === null ? (- <p className="px-2 py-1 text-xs text-muted-foreground">Select a workspace to see its agents.</p>- ) : mine.length === 0 ? (- <p className="px-2 py-1 text-xs text-muted-foreground">No agents running in this workspace.</p>- ) : (- <ul className="space-y-0.5">- {mine.map((pane) => {- const kind = dotKindFor(pane);- const style = DOT_STYLE[kind];- const stateLabel = dotLabel(pane, kind);- const cli = pane.display_name || pane.agent;- const selected = stagedPane !== null && pane.name === stagedPane;- return (- <li key={pane.history_id}>- <button- type="button"- onClick={() => requestPane(pane.workspace_id, pane.name)}- title={`${pane.name} · ${cli} · ${stateLabel}`}- aria-label={`${pane.name}, ${cli}, ${stateLabel}`}- aria-current={selected ? "true" : undefined}- data-testid="ide-workspace-agent-row"- data-pane={pane.name}- data-kind={kind}- className={cn(- "flex min-h-10 w-full items-center gap-2.5 rounded-xl px-2.5 text-left transition-colors",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring hover:bg-muted/70",- selected && "border border-border/50 bg-muted text-foreground",- )}- >- <span className="relative flex h-2 w-2 shrink-0" aria-hidden="true">- {style.ping && (- <span className="absolute inset-0 animate-ping rounded-full bg-current opacity-60 [animation-duration:1.8s] motion-reduce:hidden text-warning" />- )}- <span className={cn("relative h-2 w-2 rounded-full", style.dot)} />- </span>- <span className="min-w-0 flex-1 truncate text-[15px] font-medium text-foreground">- {pane.name}- </span>- <span className="max-w-[45%] shrink-0 truncate text-xs text-muted-foreground">{cli}</span>- </button>- </li>- );- })}- </ul>- )}- </section>- );-}diff --git a/jarvis/ui/web/frontend/src/components/agentic/IdeWorkspaceAgents.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/AgentsOverview.test.tsxsimilarity index 73%rename from jarvis/ui/web/frontend/src/components/agentic/IdeWorkspaceAgents.test.tsxrename to jarvis/ui/web/frontend/src/components/agentic/sidePanel/AgentsOverview.test.tsxindex 8ceea105eb..ae50e0dec0 100644--- a/jarvis/ui/web/frontend/src/components/agentic/IdeWorkspaceAgents.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/AgentsOverview.test.tsx@@ -1,6 +1,6 @@import { act, cleanup, fireEvent, render, screen } from "@testing-library/react";import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { IdeWorkspaceAgents } from "./IdeWorkspaceAgents";+import { AgentsOverview } from "./AgentsOverview";import { useIdeChatStore } from "@/store/ideChat";import { useIdeProjectsStore } from "@/store/ideProjects";import { resetWorkspacePanesPoll, useWorkspacePanesStore } from "@/store/workspacePanes";@@ -72,12 +72,12 @@ beforeEach(() => {afterEach(cleanup);-describe("IdeWorkspaceAgents", () => {+describe("AgentsOverview", () => {it("lists only the active workspace agents with names and live dots", () => {- render(<IdeWorkspaceAgents />);+ render(<AgentsOverview />);const rows = screen.getAllByTestId("ide-workspace-agent-row");expect(rows.map((row) => row.getAttribute("data-pane"))).toEqual(["T1", "T2", "T3"]);- expect(screen.getByTestId("ide-workspace-agents-count").textContent).toBe("3");+ expect(screen.getByTestId("ide-workspace-agents-count").textContent).toBe("3 agents");expect(rows[0].getAttribute("data-kind")).toBe("working");expect(rows[1].getAttribute("data-kind")).toBe("waiting");expect(rows[2].getAttribute("data-kind")).toBe("idle");@@ -93,30 +93,30 @@ describe("IdeWorkspaceAgents", () => {pane("T9", "w1", { status: "live", activity: "", worked: false }),],});- render(<IdeWorkspaceAgents />);+ render(<AgentsOverview />);const rows = screen.getAllByTestId("ide-workspace-agent-row");expect(rows[0].getAttribute("data-kind")).toBe("error");expect(rows[1].getAttribute("data-kind")).toBe("idle");});it("switches the list when the workspace tab changes", () => {- const { rerender } = render(<IdeWorkspaceAgents />);+ const { rerender } = render(<AgentsOverview />);expect(screen.getAllByTestId("ide-workspace-agent-row")).toHaveLength(3);act(() => useIdeProjectsStore.setState({ activeWorkspaceId: "w2" }));- rerender(<IdeWorkspaceAgents />);+ rerender(<AgentsOverview />);const rows = screen.getAllByTestId("ide-workspace-agent-row");expect(rows.map((row) => row.getAttribute("data-pane"))).toEqual(["T1"]);});it("asks the IDE view to focus the pane on click", () => {- render(<IdeWorkspaceAgents />);+ render(<AgentsOverview />);fireEvent.click(screen.getByRole("button", { name: /T2, Codex/ }));expect(useIdeChatStore.getState().paneRequest).toMatchObject({ workspaceId: "w1", pane: "T2" });});it("highlights the staged pane", () => {useIdeChatStore.setState({ stagedPane: "T2" });- render(<IdeWorkspaceAgents />);+ render(<AgentsOverview />);const rows = screen.getAllByTestId("ide-workspace-agent-row");expect(rows[1].getAttribute("aria-current")).toBe("true");expect(rows[0].getAttribute("aria-current")).toBeNull();@@ -124,8 +124,37 @@ describe("IdeWorkspaceAgents", () => {it("shows an empty hint when the workspace has no agents", () => {useIdeProjectsStore.setState({ activeWorkspaceId: "w9" });- render(<IdeWorkspaceAgents />);+ render(<AgentsOverview />);expect(screen.queryByTestId("ide-workspace-agent-row")).toBeNull();expect(screen.getByTestId("ide-workspace-agents").textContent).toContain("No agents");});++ it("summarises the workspace by state, needs-input first", () => {+ render(<AgentsOverview />);+ const summary = screen.getByTestId("ide-agents-summary");+ const kinds = Array.from(summary.querySelectorAll("[data-kind]")).map((node) => node.getAttribute("data-kind"));+ expect(kinds).toEqual(["waiting", "working", "idle"]);+ expect(summary.textContent).toContain("1 need input");+ expect(summary.textContent).toContain("1 working");+ });++ it("shows each agent's state, its last task and its last output", () => {+ const now = Math.floor(Date.now() / 1000);+ useWorkspacePanesStore.setState({+ panes: [+ pane("T1", "w1", {+ activity: "working",+ activity_since: now - 180,+ last_output_at: now - 5,+ recap: "Fix the login test",+ }),+ ],+ });+ render(<AgentsOverview />);+ const row = screen.getByTestId("ide-workspace-agent-row");+ expect(screen.getByTestId("ide-agent-state").textContent).toBe("Working");+ expect(row.textContent).toContain("for 3m");+ expect(screen.getByTestId("ide-agent-task").textContent).toBe("Fix the login test");+ expect(row.textContent).toMatch(/Last output \d+s ago/);+ });});diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/AgentsOverview.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/AgentsOverview.tsxnew file mode 100644index 0000000000..916e748a3b--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/AgentsOverview.tsx@@ -0,0 +1,156 @@+import { useEffect, useState } from "react";+import { fill, useT } from "@/i18n";+import { cn } from "@/lib/utils";+import { useIdeChatStore } from "@/store/ideChat";+import { useIdeProjectsStore } from "@/store/ideProjects";+import { useWorkspacePanes } from "@/store/workspacePanes";+import { sessionTitle } from "@/components/agentic/sessionTitle";+import {+ DOT_STYLE,+ SUMMARY_ORDER,+ compactSince,+ dotKindFor,+ stateKeyFor,+ workspaceAgents,+ type AgentDotKind,+} from "./agentStatus";++/** How often the "for 3m" readings move on; state changes arrive live anyway. */+const CLOCK_TICK_MS = 15_000;++function useClock(): number {+ const [now, setNow] = useState(() => Date.now());+ useEffect(() => {+ const timer = window.setInterval(() => setNow(Date.now()), CLOCK_TICK_MS);+ return () => window.clearInterval(timer);+ }, []);+ return now;+}++const SUMMARY_TONE: Record<AgentDotKind, string> = {+ waiting: "text-warning",+ working: "text-success",+ error: "text-destructive",+ idle: "text-muted-foreground",+};++/**+ * What every coding agent of the workspace at the front is doing right now.+ *+ * The side panel's Agents tab: a summary strip (how many work, wait on the+ * user, failed, sit idle) over one card per agent — its state and for how+ * long, the CLI behind it, what it was last asked, and when it last printed+ * anything. Rows stay live through the shared pane store (poll plus socket+ * activity events); a click asks the IDE view to bring that pane forward.+ */+export function AgentsOverview() {+ const t = useT();+ const now = useClock();+ const activeWorkspaceId = useIdeProjectsStore((state) => state.activeWorkspaceId);+ const requestPane = useIdeChatStore((state) => state.requestPane);+ const stagedPane = useIdeChatStore((state) => state.stagedPane);+ const panes = useWorkspacePanes();+ const mine = workspaceAgents(panes, activeWorkspaceId);++ const counts = new Map<AgentDotKind, number>();+ for (const pane of mine) {+ const kind = dotKindFor(pane);+ counts.set(kind, (counts.get(kind) ?? 0) + 1);+ }++ return (+ <section+ data-testid="ide-workspace-agents"+ data-workspace={activeWorkspaceId ?? undefined}+ aria-label={t("ide_side_panel.agents.aria")}+ className="flex h-full min-h-0 flex-col"+ >+ {mine.length > 0 && (+ <div+ data-testid="ide-agents-summary"+ className="flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b border-border/60 px-4 py-2.5 text-xs"+ >+ <span+ data-testid="ide-workspace-agents-count"+ className="font-medium tabular-nums text-foreground"+ >+ {fill(t(mine.length === 1 ? "ide_side_panel.agents.count_one" : "ide_side_panel.agents.count_other"), { n: mine.length })}+ </span>+ {SUMMARY_ORDER.filter((kind) => counts.get(kind)).map((kind) => (+ <span key={kind} data-kind={kind} className={cn("flex items-center gap-1.5 tabular-nums", SUMMARY_TONE[kind])}>+ <span className={cn("h-1.5 w-1.5 rounded-full", DOT_STYLE[kind].dot)} aria-hidden="true" />+ {fill(t(`ide_side_panel.agents.summary.${kind}`), { n: counts.get(kind) ?? 0 })}+ </span>+ ))}+ </div>+ )}++ {activeWorkspaceId === null ? (+ <p className="px-4 py-3 text-sm text-muted-foreground">{t("ide_side_panel.agents.no_workspace")}</p>+ ) : mine.length === 0 ? (+ <p className="px-4 py-3 text-sm text-muted-foreground">{t("ide_side_panel.agents.empty")}</p>+ ) : (+ <ul className="scrollbar-jarvis min-h-0 flex-1 space-y-1 overflow-y-auto p-2">+ {mine.map((pane) => {+ const kind = dotKindFor(pane);+ const style = DOT_STYLE[kind];+ const stateLabel = t(`ide_side_panel.agents.state.${stateKeyFor(pane, kind)}`);+ const cli = pane.display_name || pane.agent;+ const selected = stagedPane !== null && pane.name === stagedPane;+ const since = compactSince(pane.activity_since, now);+ const lastOutput = compactSince(pane.last_output_at, now);+ const title = sessionTitle(pane);+ const hasTitle = title !== cli && title !== pane.name;+ return (+ <li key={pane.history_id}>+ <button+ type="button"+ onClick={() => requestPane(pane.workspace_id, pane.name)}+ aria-label={`${pane.name}, ${cli}, ${stateLabel}`}+ aria-current={selected ? "true" : undefined}+ data-testid="ide-workspace-agent-row"+ data-pane={pane.name}+ data-kind={kind}+ className={cn(+ "flex w-full flex-col gap-1 rounded-xl border border-transparent px-3 py-2.5 text-left transition-colors",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring hover:bg-muted/70",+ selected && "border-border/60 bg-muted",+ )}+ >+ <span className="flex w-full items-center gap-2.5">+ <span className="relative flex h-2 w-2 shrink-0" aria-hidden="true">+ {style.ping && (+ <span className="absolute inset-0 animate-ping rounded-full bg-warning opacity-60 [animation-duration:1.8s] motion-reduce:hidden" />+ )}+ <span className={cn("relative h-2 w-2 rounded-full", style.dot)} />+ </span>+ <span className="min-w-0 truncate text-[15px] font-medium text-foreground">{pane.name}</span>+ <span className="min-w-0 flex-1 truncate text-xs text-muted-foreground">{cli}</span>+ </span>+ <span className="flex w-full items-center gap-1.5 pl-[18px] text-xs">+ <span data-testid="ide-agent-state" className={cn("font-medium", SUMMARY_TONE[kind])}>{stateLabel}</span>+ {since && (+ <span className="tabular-nums text-muted-foreground">+ · {fill(t("ide_side_panel.agents.for"), { time: since })}+ </span>+ )}+ </span>+ {hasTitle && (+ <span data-testid="ide-agent-task" className="line-clamp-2 pl-[18px] text-xs text-foreground/80">+ {title}+ </span>+ )}+ {lastOutput && (+ <span className="pl-[18px] text-[11px] tabular-nums text-muted-foreground">+ {fill(t("ide_side_panel.agents.last_output"), { time: lastOutput })}+ </span>+ )}+ </button>+ </li>+ );+ })}+ </ul>+ )}+ </section>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.test.tsxnew file mode 100644index 0000000000..f49cf01f7d--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.test.tsx@@ -0,0 +1,89 @@+import { act, cleanup, fireEvent, render, screen } from "@testing-library/react";+import { afterEach, beforeEach, describe, expect, it } from "vitest";+import { IdeSidePanelFrame } from "./IdeSidePanel";+import { IdeSidePanelToggle } from "./IdeSidePanelToggle";+import { useEventStore } from "@/store/events";+import { useIdeProjectsStore } from "@/store/ideProjects";+import { useIdeSidePanelStore } from "@/store/ideSidePanel";+import { resetWorkspacePanesPoll, useWorkspacePanesStore } from "@/store/workspacePanes";++function Harness() {+ return (+ <>+ <IdeSidePanelToggle />+ <IdeSidePanelFrame>+ <div data-testid="grid">grid</div>+ </IdeSidePanelFrame>+ </>+ );+}++beforeEach(() => {+ localStorage.clear();+ resetWorkspacePanesPoll();+ useWorkspacePanesStore.setState({ panes: [], activeId: null, loaded: true, load: async () => {} });+ useIdeProjectsStore.setState({ activeWorkspaceId: null });+ useEventStore.setState({ activeSection: "agentic-ide" });+ useIdeSidePanelStore.setState({ open: false, tabs: ["agents"], active: "agents" });+});++afterEach(cleanup);++describe("IdeSidePanel", () => {+ it("opens from the caption toggle and closes from its own header", () => {+ render(<Harness />);+ expect(screen.queryByTestId("ide-side-panel")).toBeNull();+ expect(screen.getByTestId("ide-side-panel-host").style.width).toBe("0px");++ fireEvent.click(screen.getByTestId("ide-side-panel-toggle"));+ expect(screen.getByTestId("ide-side-panel")).toBeTruthy();+ expect(screen.getByTestId("ide-side-panel-tab-agents").getAttribute("aria-selected")).toBe("true");+ expect(screen.getByTestId("ide-workspace-agents")).toBeTruthy();+ expect(screen.getByTestId("ide-side-panel-resizer")).toBeTruthy();+ expect(localStorage.getItem("jarvis.agenticIde.sidePanelOpen")).toBe("1");++ fireEvent.click(screen.getByTestId("ide-side-panel-collapse"));+ expect(screen.queryByTestId("ide-side-panel")).toBeNull();+ expect(localStorage.getItem("jarvis.agenticIde.sidePanelOpen")).toBe("0");+ });++ it("keeps the grid mounted while the panel opens and closes", () => {+ render(<Harness />);+ const grid = screen.getByTestId("grid");+ fireEvent.click(screen.getByTestId("ide-side-panel-toggle"));+ fireEvent.click(screen.getByTestId("ide-side-panel-collapse"));+ expect(screen.getByTestId("grid")).toBe(grid);+ });++ it("collapses when the last tab closes and reopens with Agents", () => {+ act(() => useIdeSidePanelStore.getState().setOpen(true));+ render(<Harness />);+ fireEvent.click(screen.getByTestId("ide-side-panel-close-agents"));+ expect(screen.queryByTestId("ide-side-panel")).toBeNull();+ fireEvent.click(screen.getByTestId("ide-side-panel-toggle"));+ expect(screen.getByTestId("ide-side-panel-tab-agents")).toBeTruthy();+ });++ it("disables + while every tab is already open", () => {+ act(() => useIdeSidePanelStore.getState().setOpen(true));+ render(<Harness />);+ expect((screen.getByTestId("ide-side-panel-add") as HTMLButtonElement).disabled).toBe(true);+ });++ it("offers a closed tab again through +", () => {+ act(() => useIdeSidePanelStore.setState({ open: true, tabs: [], active: "agents" }));+ render(<Harness />);+ const add = screen.getByTestId("ide-side-panel-add") as HTMLButtonElement;+ expect(add.disabled).toBe(false);+ fireEvent.click(add);+ fireEvent.click(screen.getByTestId("ide-side-panel-add-agents"));+ expect(useIdeSidePanelStore.getState().tabs).toEqual(["agents"]);+ expect(screen.getByTestId("ide-side-panel-tab-agents")).toBeTruthy();+ });++ it("shows the toggle only in the Agentic IDE", () => {+ act(() => useEventStore.setState({ activeSection: "chats" }));+ render(<IdeSidePanelToggle />);+ expect(screen.queryByTestId("ide-side-panel-toggle")).toBeNull();+ });+});diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.tsxnew file mode 100644index 0000000000..375cb9a64e--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.tsx@@ -0,0 +1,232 @@+import { useEffect, useRef, useState, type ReactNode } from "react";+import { MoveHorizontal, PanelRightClose, Plus, X } from "lucide-react";+import { useT } from "@/i18n";+import { cn } from "@/lib/utils";+import { useResizablePane } from "@/hooks/useResizablePane";+import { PaneResizer } from "@/components/layout/PaneResizer";+import { useIdeSidePanelStore } from "@/store/ideSidePanel";+import { SIDE_PANEL_TABS, sidePanelTab } from "./sidePanelTabs";++const WIDTH_KEY = "jarvis.agenticIde.sidePanelWidth.v1";+const DEFAULT_PX = 340;+const MIN_PX = 260;+const MAX_PX = 720;+/** Terminal canvas kept visible while the panel is open. */+const GRID_RESERVED_PX = 320;++export const SIDE_PANEL_ID = "ide-side-panel";++const HEADER_BTN =+ "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors " ++ "hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring " ++ "disabled:cursor-default disabled:opacity-40 disabled:hover:bg-transparent";++/**+ * The Agentic IDE's workspace with its right-hand side panel.+ *+ * `children` (the terminal grid) takes the free width; the panel host on the+ * right is ALWAYS mounted and only its width moves between 0 and the stored+ * size, so opening or closing it never changes the sibling identity of a live+ * terminal or its PTY socket — the same trick the legacy explorer used.+ */+export function IdeSidePanelFrame({ children }: { children: ReactNode }) {+ const t = useT();+ const open = useIdeSidePanelStore((state) => state.open);+ const frame = useRef<HTMLDivElement>(null);+ const [frameWidth, setFrameWidth] = useState(0);++ useEffect(() => {+ const node = frame.current;+ if (!node || typeof ResizeObserver === "undefined") return;+ const observer = new ResizeObserver(([entry]) => setFrameWidth(Math.round(entry.contentRect.width)));+ observer.observe(node);+ return () => observer.disconnect();+ }, []);++ const max = Math.max(MIN_PX, Math.min(MAX_PX, frameWidth ? frameWidth - GRID_RESERVED_PX : MAX_PX));+ const pane = useResizablePane({+ storageKey: WIDTH_KEY,+ defaultSize: DEFAULT_PX,+ min: MIN_PX,+ max,+ axis: "x",+ // The panel sits on the right, so its grip is its LEFT edge.+ handle: "start",+ });+ // Keep a wider stored preference intact while the window is narrow.+ const width = Math.min(pane.size, max);++ return (+ <div ref={frame} className="flex h-full min-h-0 w-full">+ <div className="h-full min-h-0 min-w-0 flex-1">{children}</div>+ <div+ data-testid="ide-side-panel-host"+ className={cn(+ "relative h-full shrink-0",+ !pane.isResizing && "transition-[width] duration-200 motion-reduce:transition-none",+ )}+ style={{ width: open ? width : 0 }}+ aria-hidden={!open}+ >+ {open && (+ <>+ <div className="group absolute inset-y-0 left-0 z-20 flex -translate-x-1/2">+ <PaneResizer+ testId="ide-side-panel-resizer"+ orientation="vertical"+ active={pane.isResizing}+ title={t("ide_side_panel.resize")}+ onPointerDown={pane.startResize}+ onDoubleClick={pane.reset}+ // A start-edge grip: Left grows the panel, so the delta flips.+ onNudge={(delta) => pane.nudge(-delta)}+ valueNow={width}+ valueMin={MIN_PX}+ valueMax={max}+ controls={SIDE_PANEL_ID}+ className="h-full"+ showLine={false}+ />+ <MoveHorizontal+ aria-hidden+ className={cn(+ "pointer-events-none absolute left-1/2 top-1/2 h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-secondary p-0.5 text-foreground transition-opacity",+ pane.isResizing ? "opacity-100" : "opacity-0 group-hover:opacity-100 group-focus-within:opacity-100",+ )}+ />+ </div>+ <IdeSidePanel />+ </>+ )}+ </div>+ </div>+ );+}++/** The panel itself: tab header ("+" and collapse) over the active tab's content. */+export function IdeSidePanel() {+ const t = useT();+ const tabs = useIdeSidePanelStore((state) => state.tabs);+ const active = useIdeSidePanelStore((state) => state.active);+ const select = useIdeSidePanelStore((state) => state.select);+ const openTab = useIdeSidePanelStore((state) => state.openTab);+ const closeTab = useIdeSidePanelStore((state) => state.closeTab);+ const setOpen = useIdeSidePanelStore((state) => state.setOpen);+ const [menuOpen, setMenuOpen] = useState(false);+ const menu = useRef<HTMLDivElement>(null);+ const addable = SIDE_PANEL_TABS.filter((tab) => !tabs.includes(tab.id));+ const current = sidePanelTab(active);++ useEffect(() => {+ if (!menuOpen) return;+ const onPointer = (event: MouseEvent) => {+ if (menu.current && !menu.current.contains(event.target as Node)) setMenuOpen(false);+ };+ const onKey = (event: KeyboardEvent) => { if (event.key === "Escape") setMenuOpen(false); };+ document.addEventListener("mousedown", onPointer);+ document.addEventListener("keydown", onKey);+ return () => {+ document.removeEventListener("mousedown", onPointer);+ document.removeEventListener("keydown", onKey);+ };+ }, [menuOpen]);++ return (+ <aside+ id={SIDE_PANEL_ID}+ data-testid="ide-side-panel"+ aria-label={t("ide_side_panel.aria")}+ className="flex h-full min-h-0 flex-col overflow-hidden border-l border-border bg-card/40"+ >+ <div className="flex h-11 shrink-0 items-center gap-1 border-b border-border/60 px-2">+ <div role="tablist" aria-label={t("ide_side_panel.tabs_aria")} className="flex min-w-0 flex-1 items-center gap-1 overflow-x-auto">+ {tabs.map((id) => {+ const tab = sidePanelTab(id);+ if (!tab) return null;+ const label = t(tab.labelKey);+ const selected = id === active;+ return (+ <div+ key={id}+ className={cn(+ "group/tab flex h-8 min-w-0 shrink-0 items-center gap-1 rounded-lg pl-2.5 pr-1 text-sm transition-colors",+ selected ? "bg-secondary text-foreground" : "text-muted-foreground hover:bg-secondary/60 hover:text-foreground",+ )}+ >+ <button+ type="button"+ role="tab"+ aria-selected={selected}+ aria-controls={`${SIDE_PANEL_ID}-content`}+ data-testid={`ide-side-panel-tab-${id}`}+ onClick={() => select(id)}+ className="flex min-w-0 items-center gap-1.5 focus-visible:outline-none"+ >+ <tab.icon className="h-4 w-4 shrink-0" aria-hidden />+ <span className="truncate font-medium">{label}</span>+ </button>+ <button+ type="button"+ aria-label={`${t("ide_side_panel.close_tab")}: ${label}`}+ title={t("ide_side_panel.close_tab")}+ data-testid={`ide-side-panel-close-${id}`}+ onClick={() => closeTab(id)}+ className="inline-flex h-5 w-5 items-center justify-center rounded text-muted-foreground hover:bg-background/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ >+ <X className="h-3.5 w-3.5" aria-hidden />+ </button>+ </div>+ );+ })}+ </div>+ <div ref={menu} className="relative">+ <button+ type="button"+ data-testid="ide-side-panel-add"+ aria-label={t("ide_side_panel.add_tab")}+ title={addable.length ? t("ide_side_panel.add_tab") : t("ide_side_panel.all_open")}+ aria-haspopup="menu"+ aria-expanded={menuOpen}+ disabled={addable.length === 0}+ onClick={() => setMenuOpen((value) => !value)}+ className={HEADER_BTN}+ >+ <Plus className="h-4 w-4" aria-hidden />+ </button>+ {menuOpen && addable.length > 0 && (+ <div role="menu" className="absolute right-0 top-full z-30 mt-1 min-w-44 rounded-lg border border-border bg-popover p-1 shadow-float">+ {addable.map((tab) => (+ <button+ key={tab.id}+ type="button"+ role="menuitem"+ data-testid={`ide-side-panel-add-${tab.id}`}+ onClick={() => { openTab(tab.id); setMenuOpen(false); }}+ className="flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm text-foreground hover:bg-secondary"+ >+ <tab.icon className="h-4 w-4 text-muted-foreground" aria-hidden />+ {t(tab.labelKey)}+ </button>+ ))}+ </div>+ )}+ </div>+ <button+ type="button"+ data-testid="ide-side-panel-collapse"+ aria-label={t("ide_side_panel.collapse")}+ title={t("ide_side_panel.collapse")}+ aria-controls={SIDE_PANEL_ID}+ aria-expanded+ onClick={() => setOpen(false)}+ className={HEADER_BTN}+ >+ <PanelRightClose className="h-4 w-4" aria-hidden />+ </button>+ </div>+ <div id={`${SIDE_PANEL_ID}-content`} role="tabpanel" className="min-h-0 flex-1">+ {current?.render()}+ </div>+ </aside>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanelToggle.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanelToggle.tsxnew file mode 100644index 0000000000..538bb6e419--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanelToggle.tsx@@ -0,0 +1,43 @@+import { PanelRightClose, PanelRightOpen } from "lucide-react";+import { useT } from "@/i18n";+import { cn } from "@/lib/utils";+import { useEventStore } from "@/store/events";+import { useIdeSidePanelStore } from "@/store/ideSidePanel";+import { SIDE_PANEL_ID } from "./IdeSidePanel";++/**+ * Opens and shuts the Agentic IDE's right-hand side panel.+ *+ * It lives in the window caption's right end — the mirror of the sidebar+ * toggle at the left end — so it never sits on top of a terminal pane's own+ * header buttons. Only the Agentic IDE has the panel, so only it shows this.+ */+export function IdeSidePanelToggle({ className }: { className?: string }) {+ const t = useT();+ const activeSection = useEventStore((state) => state.activeSection);+ const open = useIdeSidePanelStore((state) => state.open);+ const toggle = useIdeSidePanelStore((state) => state.toggle);+ if (activeSection !== "agentic-ide") return null;+ const label = t(open ? "ide_side_panel.collapse" : "ide_side_panel.expand");+ const Icon = open ? PanelRightClose : PanelRightOpen;+ return (+ <button+ type="button"+ onClick={toggle}+ title={label}+ aria-label={label}+ aria-expanded={open}+ aria-controls={SIDE_PANEL_ID}+ data-testid="ide-side-panel-toggle"+ className={cn(+ "inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md",+ "text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ open && "text-foreground",+ className,+ )}+ >+ <Icon aria-hidden className="h-4 w-4" />+ </button>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/agentStatus.ts b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/agentStatus.tsnew file mode 100644index 0000000000..50ac4b3d32--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/agentStatus.ts@@ -0,0 +1,68 @@+import type { WorkspacePaneRow } from "@/lib/agenticIdeApi";++/** The four colours an agent's dot can take — what a glance has to separate. */+export type AgentDotKind = "working" | "waiting" | "idle" | "error";++/** The finer reading behind a dot, shown as words. */+export type AgentStateKey =+ | "starting"+ | "working"+ | "needs_input"+ | "failed"+ | "error"+ | "exited"+ | "done"+ | "idle";++export function dotKindFor(pane: WorkspacePaneRow): AgentDotKind {+ if (pane.status === "error" || pane.activity === "failed") return "error";+ if (pane.activity === "asking") return "waiting";+ if (+ pane.activity === "working" ||+ pane.activity === "starting" ||+ pane.status === "pending"+ )+ return "working";+ return "idle";+}++export function stateKeyFor(pane: WorkspacePaneRow, kind: AgentDotKind = dotKindFor(pane)): AgentStateKey {+ if (kind === "working") return pane.activity === "starting" || pane.status === "pending" ? "starting" : "working";+ if (kind === "waiting") return "needs_input";+ if (kind === "error") return pane.activity === "failed" ? "failed" : "error";+ if (pane.status === "exited") return "exited";+ return pane.worked ? "done" : "idle";+}++export const DOT_STYLE: Record<AgentDotKind, { dot: string; ping: boolean }> = {+ working: { dot: "bg-success", ping: false },+ waiting: { dot: "bg-warning", ping: true },+ idle: { dot: "bg-muted-foreground/40", ping: false },+ error: { dot: "bg-destructive", ping: false },+};++/** Summary order: what needs the user first, then what is busy, then the rest. */+export const SUMMARY_ORDER: readonly AgentDotKind[] = ["waiting", "working", "error", "idle"];++/**+ * The coding agents of one workspace, in call-sign order.+ *+ * Shell panes are not agents and archived ones are hidden from every list —+ * the same filter the sidebar list used before it moved into the side panel.+ */+export function workspaceAgents(panes: WorkspacePaneRow[], workspaceId: string | null): WorkspacePaneRow[] {+ if (!workspaceId) return [];+ return panes+ .filter((pane) => pane.workspace_id === workspaceId && !pane.archived && pane.agent !== "shell")+ .sort((a, b) => a.name.localeCompare(b.name, undefined, { numeric: true }));+}++/** "42s" / "3m" / "2h" / "1d" since an epoch-seconds moment; "" when unknown. */+export function compactSince(at: number | null | undefined, nowMs: number = Date.now()): string {+ if (!at) return "";+ const seconds = Math.max(0, Math.round(nowMs / 1000 - at));+ if (seconds < 60) return `${seconds}s`;+ if (seconds < 3600) return `${Math.floor(seconds / 60)}m`;+ if (seconds < 86_400) return `${Math.floor(seconds / 3600)}h`;+ return `${Math.floor(seconds / 86_400)}d`;+}diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/sidePanelTabs.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/sidePanelTabs.tsxnew file mode 100644index 0000000000..c58881f615--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/sidePanelTabs.tsx@@ -0,0 +1,33 @@+import type { ReactNode } from "react";+import { Bot, type LucideIcon } from "lucide-react";+import type { SidePanelTabId } from "@/store/ideSidePanel";+import { AgentsOverview } from "./AgentsOverview";++/** One function the side panel can show. */+export interface SidePanelTabDef {+ id: SidePanelTabId;+ /** i18n key of the tab's label. */+ labelKey: string;+ icon: LucideIcon;+ render: () => ReactNode;+}++/**+ * Everything the side panel can hold, in "+" menu order.+ *+ * Adding a function is one entry here plus its id in `SIDE_PANEL_TAB_IDS`+ * (`store/ideSidePanel.ts`); the header, the "+" menu and persistence pick+ * it up from there.+ */+export const SIDE_PANEL_TABS: readonly SidePanelTabDef[] = [+ {+ id: "agents",+ labelKey: "ide_side_panel.tabs.agents",+ icon: Bot,+ render: () => <AgentsOverview />,+ },+];++export function sidePanelTab(id: SidePanelTabId): SidePanelTabDef | undefined {+ return SIDE_PANEL_TABS.find((tab) => tab.id === id);+}diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsxindex 412895e65b..e72697e606 100644--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx@@ -38,6 +38,8 @@ test("IDE sidebar puts Projects first and returns to the normal chat navigation"act(() => useEventStore.setState({ activeSection: "agentic-ide" }));renderSidebar();expect(screen.getByTestId("ide-project-tree")).toBeDefined();+ // The agents list lives in the IDE's right-hand side panel now.+ expect(screen.queryByTestId("ide-workspace-agents")).toBeNull();expect(screen.queryByTestId("sidebar-new-chat")).toBeNull();expect(screen.queryByTestId("nav-row-agentic-ide")).toBeNull();fireEvent.click(screen.getByTestId("ide-back-to-jarvis"));diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsxindex be2701d198..e232a4c016 100644--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx@@ -30,7 +30,6 @@ import { useConversations } from "@/hooks/useConversations";import { useHomeStore } from "@/store/home";import { useAgentChatStore } from "@/store/agentChat";import { IdeProjectTree } from "@/components/agentic/IdeProjectTree";-import { IdeWorkspaceAgents } from "@/components/agentic/IdeWorkspaceAgents";import { useIdeProjectsStore } from "@/store/ideProjects";import { useAppInstance } from "@/hooks/useAppInstance";import { usePublishIdentity } from "@/components/marketplace/PublishIdentity";@@ -525,7 +524,7 @@ export function Sidebar({{moreOpen && <ul id="sidebar-more" className="space-y-1">{moreItems.map((item) => item.id === "tasks" ? renderRow({ ...item, labelKey: "sidebar.scheduled" }) : renderRow(item))}</ul>}</nav>}{!railed && (onIdeSection- ? <><IdeProjectTree /><IdeWorkspaceAgents /></>+ ? <IdeProjectTree />: <section className="mt-4 px-2 pb-3" aria-label={t("sidebar.recent_chats")}><RecentChats /></section>)}</div>diff --git a/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx b/jarvis/ui/web/frontend/src/components/layout/TopBar.tsxindex 82dcca4bb4..b5a49a7d81 100644--- a/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx@@ -13,6 +13,7 @@ import { cn } from "@/lib/utils";import { CodingModeBadge } from "@/components/layout/CodingModeBadge";import { SectionNavButtons } from "@/components/layout/SectionNavButtons";import { ThemeToggle } from "@/components/layout/ThemeToggle";+import { IdeSidePanelToggle } from "@/components/agentic/sidePanel/IdeSidePanelToggle";import { useDesktopChrome, WindowControls } from "@/components/layout/WindowControls";import { hasEmbeddedDesktopBridge } from "@/components/voice/BrowserRealtimeControl";import { openExternalUrl } from "@/lib/openExternal";@@ -117,6 +118,7 @@ export function TopBar({ settingsNavigation, navToggle }: {<div className="flex shrink-0 items-center"><CodingModeBadge /><TopBarActions />+ <IdeSidePanelToggle />{controls === "trailing" && (<WindowControls controls={controls} maximized={chrome.maximized} onCommand={chrome.command} />)}diff --git a/jarvis/ui/web/frontend/src/i18n/ide-side-panel-i18n-parity.test.ts b/jarvis/ui/web/frontend/src/i18n/ide-side-panel-i18n-parity.test.tsnew file mode 100644index 0000000000..710c1f5998--- /dev/null+++ b/jarvis/ui/web/frontend/src/i18n/ide-side-panel-i18n-parity.test.ts@@ -0,0 +1,30 @@+import { describe, expect, it } from "vitest";+import en from "./locales/en.json";+import de from "./locales/de.json";+import es from "./locales/es.json";++type Locale = Record<string, unknown>;++function flatten(value: Locale, prefix = ""): string[] {+ return Object.entries(value).flatMap(([key, nested]) => {+ const path = prefix ? `${prefix}.${key}` : key;+ return nested && typeof nested === "object"+ ? flatten(nested as Locale, path)+ : [path];+ });+}++const keys = (locale: Locale) =>+ flatten((locale.ide_side_panel ?? {}) as Locale).sort();++describe("IDE side panel i18n parity", () => {+ it("en defines the side panel section", () => {+ expect(keys(en as Locale).length).toBeGreaterThan(0);+ });++ for (const [language, locale] of Object.entries({ de, es })) {+ it(`${language} has the same side panel keys as en`, () => {+ expect(keys(locale as Locale)).toEqual(keys(en as Locale));+ });+ }+});diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex b4046ab127..a76b20983a 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -5762,5 +5762,43 @@"build_active": "Arbeitsmodus","control_turn": "Agentenarbeit","verifying": "Ausführung abgeschlossen; Ergebnis wird geprüft."+ },+ "ide_side_panel": {+ "aria": "Seitenleiste",+ "tabs_aria": "Tabs der Seitenleiste",+ "expand": "Seitenleiste öffnen",+ "collapse": "Seitenleiste schließen",+ "resize": "Breite der Seitenleiste ändern",+ "add_tab": "Tab hinzufügen",+ "all_open": "Alle Tabs sind bereits offen",+ "close_tab": "Tab schließen",+ "tabs": {+ "agents": "Agents"+ },+ "agents": {+ "aria": "Agents in diesem Workspace",+ "count_one": "{n} Agent",+ "count_other": "{n} Agents",+ "no_workspace": "Wähle einen Workspace, um seine Agents zu sehen.",+ "empty": "In diesem Workspace laufen keine Agents.",+ "for": "seit {time}",+ "last_output": "Letzte Ausgabe vor {time}",+ "summary": {+ "waiting": "{n} warten auf dich",+ "working": "{n} arbeiten",+ "error": "{n} fehlgeschlagen",+ "idle": "{n} fertig oder im Leerlauf"+ },+ "state": {+ "starting": "Startet",+ "working": "Arbeitet",+ "needs_input": "Wartet auf dich",+ "failed": "Fehlgeschlagen",+ "error": "Fehler",+ "exited": "Beendet",+ "done": "Fertig",+ "idle": "Im Leerlauf"+ }+ }}}diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex e5debc57aa..d47359e11b 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -5795,5 +5795,43 @@"build_active": "Build mode","control_turn": "Agent work","verifying": "Execution finished; verifying the result."+ },+ "ide_side_panel": {+ "aria": "Side panel",+ "tabs_aria": "Side panel tabs",+ "expand": "Open side panel",+ "collapse": "Close side panel",+ "resize": "Resize side panel",+ "add_tab": "Add a tab",+ "all_open": "Every tab is already open",+ "close_tab": "Close tab",+ "tabs": {+ "agents": "Agents"+ },+ "agents": {+ "aria": "Agents in this workspace",+ "count_one": "{n} agent",+ "count_other": "{n} agents",+ "no_workspace": "Select a workspace to see its agents.",+ "empty": "No agents running in this workspace.",+ "for": "for {time}",+ "last_output": "Last output {time} ago",+ "summary": {+ "waiting": "{n} need input",+ "working": "{n} working",+ "error": "{n} failed",+ "idle": "{n} idle or done"+ },+ "state": {+ "starting": "Starting",+ "working": "Working",+ "needs_input": "Needs input",+ "failed": "Failed",+ "error": "Error",+ "exited": "Exited",+ "done": "Done",+ "idle": "Idle"+ }+ }}}diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex 7e0ba58582..0d200cf745 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -5762,5 +5762,43 @@"build_active": "Modo de trabajo","control_turn": "Trabajo del agente","verifying": "Ejecución finalizada; verificando el resultado."+ },+ "ide_side_panel": {+ "aria": "Panel lateral",+ "tabs_aria": "Pestañas del panel lateral",+ "expand": "Abrir panel lateral",+ "collapse": "Cerrar panel lateral",+ "resize": "Cambiar el ancho del panel lateral",+ "add_tab": "Añadir una pestaña",+ "all_open": "Todas las pestañas ya están abiertas",+ "close_tab": "Cerrar pestaña",+ "tabs": {+ "agents": "Agentes"+ },+ "agents": {+ "aria": "Agentes de este espacio de trabajo",+ "count_one": "{n} agente",+ "count_other": "{n} agentes",+ "no_workspace": "Selecciona un espacio de trabajo para ver sus agentes.",+ "empty": "No hay agentes en este espacio de trabajo.",+ "for": "desde hace {time}",+ "last_output": "Última salida hace {time}",+ "summary": {+ "waiting": "{n} esperan tu respuesta",+ "working": "{n} trabajando",+ "error": "{n} con error",+ "idle": "{n} listos o inactivos"+ },+ "state": {+ "starting": "Iniciando",+ "working": "Trabajando",+ "needs_input": "Espera tu respuesta",+ "failed": "Falló",+ "error": "Error",+ "exited": "Terminado",+ "done": "Listo",+ "idle": "Inactivo"+ }+ }}}diff --git a/jarvis/ui/web/frontend/src/store/ideSidePanel.ts b/jarvis/ui/web/frontend/src/store/ideSidePanel.tsnew file mode 100644index 0000000000..3b506c5d3f--- /dev/null+++ b/jarvis/ui/web/frontend/src/store/ideSidePanel.ts@@ -0,0 +1,103 @@+import { create } from "zustand";++/**+ * The Agentic IDE's right-hand side panel: open or shut, which tabs it holds,+ * and which one is in front.+ *+ * Two places need the answer and neither can reach the other by props: the+ * toggle lives in the window caption (`TopBar`), the panel itself inside the+ * IDE view. The state survives a reload through localStorage, which may be+ * blocked — every read and write degrades to the defaults instead of throwing.+ */++/** Every function the panel can show. A new one is a new id plus a registry entry. */+export type SidePanelTabId = "agents";++export const SIDE_PANEL_TAB_IDS: readonly SidePanelTabId[] = ["agents"];++const OPEN_KEY = "jarvis.agenticIde.sidePanelOpen";+const TABS_KEY = "jarvis.agenticIde.sidePanelTabs.v1";++const DEFAULT_TABS: SidePanelTabId[] = ["agents"];++const isTabId = (value: unknown): value is SidePanelTabId =>+ typeof value === "string" && (SIDE_PANEL_TAB_IDS as readonly string[]).includes(value);++function storedOpen(): boolean {+ try {+ return localStorage.getItem(OPEN_KEY) === "1";+ } catch {+ return false;+ }+}++function storedTabs(): { tabs: SidePanelTabId[]; active: SidePanelTabId } {+ try {+ const raw = JSON.parse(localStorage.getItem(TABS_KEY) ?? "null") as {+ tabs?: unknown;+ active?: unknown;+ } | null;+ const tabs = Array.isArray(raw?.tabs) ? [...new Set(raw.tabs.filter(isTabId))] : [];+ if (tabs.length === 0) return { tabs: DEFAULT_TABS, active: DEFAULT_TABS[0] };+ return { tabs, active: isTabId(raw?.active) && tabs.includes(raw.active) ? raw.active : tabs[0] };+ } catch {+ return { tabs: DEFAULT_TABS, active: DEFAULT_TABS[0] };+ }+}++function persist(open: boolean, tabs: SidePanelTabId[], active: SidePanelTabId): void {+ try {+ localStorage.setItem(OPEN_KEY, open ? "1" : "0");+ localStorage.setItem(TABS_KEY, JSON.stringify({ tabs, active }));+ } catch {+ /* a convenience only: the panel still works for this session */+ }+}++interface IdeSidePanelState {+ open: boolean;+ tabs: SidePanelTabId[];+ active: SidePanelTabId;+ setOpen: (open: boolean) => void;+ toggle: () => void;+ /** Open a tab (or bring it forward when it is already open). */+ openTab: (id: SidePanelTabId) => void;+ select: (id: SidePanelTabId) => void;+ /** Closing the last tab collapses the panel; reopening starts fresh. */+ closeTab: (id: SidePanelTabId) => void;+}++const initialTabs = storedTabs();++export const useIdeSidePanelStore = create<IdeSidePanelState>((set, get) => {+ const commit = (next: Partial<Pick<IdeSidePanelState, "open" | "tabs" | "active">>) => {+ const merged = { open: get().open, tabs: get().tabs, active: get().active, ...next };+ set(merged);+ persist(merged.open, merged.tabs, merged.active);+ };+ return {+ open: storedOpen(),+ tabs: initialTabs.tabs,+ active: initialTabs.active,+ setOpen: (open) => commit({ open }),+ toggle: () => get().setOpen(!get().open),+ openTab: (id) => {+ const { tabs } = get();+ commit({ open: true, tabs: tabs.includes(id) ? tabs : [...tabs, id], active: id });+ },+ select: (id) => {+ if (get().tabs.includes(id)) commit({ active: id });+ },+ closeTab: (id) => {+ const { tabs, active } = get();+ const index = tabs.indexOf(id);+ if (index < 0) return;+ const rest = tabs.filter((tab) => tab !== id);+ if (rest.length === 0) {+ commit({ open: false, tabs: DEFAULT_TABS, active: DEFAULT_TABS[0] });+ return;+ }+ commit({ tabs: rest, active: active === id ? rest[Math.max(0, index - 1)] : active });+ },+ };+});diff --git a/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx b/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsxindex 1f9041a2f4..17c3acb25f 100644--- a/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx+++ b/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx@@ -5,6 +5,7 @@ import { VoiceBubble, storedVoiceBubbleOpen, storeVoiceBubbleOpen } from "@/compimport { WorkspaceTerminalGrid } from "@/components/agentic/WorkspaceTerminalGrid";import { WorkspaceAgentSetup } from "@/components/agentic/WorkspaceAgentSetup";import { WorkspaceOptionsDialog } from "@/components/agentic/WorkspaceOptionsDialog";+import { IdeSidePanelFrame } from "@/components/agentic/sidePanel/IdeSidePanel";import { fitsWorkspace, isBalancedWorkspace, canSplitFit } from "@/components/agentic/workspaceDocking";import { AgentMark } from "@/components/agentic/AgentMark";import { SplitRightIcon, SplitBelowIcon, SplitLeftIcon, SplitAboveIcon } from "@/components/agentic/splitIcons";@@ -354,6 +355,7 @@ export function AgenticIdeView({ onScreen = true }: AgenticIdeViewProps) {/><main className="min-h-0 flex-1">+ <IdeSidePanelFrame>{session ? <WorkspaceTerminalGrid key={session.id} session={session} onChanged={(next) => setState((current) => current?.session?.id === next.id ? { ...current, session: next } : current)}onAdd={openAgentPicker} onClose={closeAgent} onSelect={setSelected} selected={selected} fontSize={fontSize} appearance={appearance} disabled={busy}onMutationStart={beginGridMutation} onMutationEnd={endGridMutation} />@@ -363,6 +365,7 @@ export function AgenticIdeView({ onScreen = true }: AgenticIdeViewProps) {<p className="max-w-md text-sm text-muted-foreground">{projects.some((project) => !project.scratch && !project.archived) ? "Select a workspace from Projects, or create one with + beside its project." : "Connect a folder to bring its coding agents and Jarvis into one workspace."}</p><button type="button" onClick={() => setProjectDialog(true)} className="mt-2 rounded-md border border-border px-3 py-1.5 text-sm hover:bg-accent">Connect folder</button></div>}+ </IdeSidePanelFrame></main><VoiceBubble open={voiceOpen} onClose={closeVoice} onScreen={onScreen} onJumpToPane={jumpToPane} promptTarget={selected} />