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): open the requested pane from the thread layout
rubenluetke10-beep565603e2dd16
diff --git a/jarvis/ui/web/frontend/src/components/society/office/codingNavigate.test.ts b/jarvis/ui/web/frontend/src/components/society/office/codingNavigate.test.tsindex 5e6a68f5d2..bcb5738fcf 100644--- a/jarvis/ui/web/frontend/src/components/society/office/codingNavigate.test.ts+++ b/jarvis/ui/web/frontend/src/components/society/office/codingNavigate.test.ts@@ -1,13 +1,16 @@import { afterEach, describe, expect, it } from "vitest";import { useEventStore } from "@/store/events";import { useIdeChatStore } from "@/store/ideChat";+import { useIdeThreadsStore } from "@/store/ideThreads";import { openPaneSession } from "./codingNavigate";import { useOfficeStore } from "./officeStore";describe("open a coding session from the office", () => {const initialSection = useEventStore.getState().activeSection;const initialSelection = useOfficeStore.getState().selection;+ const initialLayout = useIdeThreadsStore.getState().layout;afterEach(() => {+ useIdeThreadsStore.setState({ layout: initialLayout });useEventStore.setState({ activeSection: initialSection });useIdeChatStore.setState({ paneRequest: null });useOfficeStore.setState({ selection: initialSelection });@@ -42,4 +45,11 @@ describe("open a coding session from the office", () => {expect(useOfficeStore.getState().selection).toBeNull();expect(useIdeChatStore.getState().paneRequest).toMatchObject({ maximize: true });});++ it("leaves the thread layout so the pane itself shows, not the last open thread", () => {+ useIdeThreadsStore.setState({ layout: "threads" });+ openPaneSession({ workspace_id: "ws-1", name: "T2" });+ expect(useIdeThreadsStore.getState().layout).toBe("grid");+ expect(useIdeChatStore.getState().paneRequest).toMatchObject({ workspaceId: "ws-1", pane: "T2", maximize: true });+ });});diff --git a/jarvis/ui/web/frontend/src/store/ideChat.ts b/jarvis/ui/web/frontend/src/store/ideChat.tsindex c096810adf..dbae3cd75d 100644--- a/jarvis/ui/web/frontend/src/store/ideChat.ts+++ b/jarvis/ui/web/frontend/src/store/ideChat.ts@@ -6,6 +6,7 @@ import {type WorkspaceView,} from "@/components/agentic/workspaceView";import type { SplitAgentChoice } from "@/components/agentic/AgentPicker";+import { useIdeThreadsStore } from "@/store/ideThreads";/*** Which face the Agentic IDE is wearing, for everyone who has to know.@@ -124,7 +125,7 @@ interface IdeChatStore {setView: (next: WorkspaceView) => void;setWorkspace: (next: IdeWorkspace | null) => void;- /** Bring a pane to the front, switching workspace first when it lives elsewhere. */+ /** Bring a pane to the front, switching to the grid and to its workspace when it lives elsewhere. */requestPane: (workspaceId: string, pane: string, options?: { maximize?: boolean }) => void;/** The grid maximized request `nonce`; drop its maximize flag. */settlePaneMaximize: (nonce: number) => void;@@ -161,7 +162,10 @@ export const useIdeChatStore = create<IdeChatStore>((set) => ({},setWorkspace: (next) => set({ workspace: next }),- requestPane: (workspaceId, pane, options) =>+ requestPane: (workspaceId, pane, options) => {+ // A pane lives only in the grid: the thread layout would keep whatever+ // thread was open in front of it, so a request for a pane shows the grid.+ useIdeThreadsStore.getState().setLayout("grid");set((state) => ({paneRequest: {workspaceId,@@ -169,7 +173,8 @@ export const useIdeChatStore = create<IdeChatStore>((set) => ({nonce: (state.paneRequest?.nonce ?? 0) + 1,...(options?.maximize ? { maximize: true } : {}),},- })),+ }));+ },settlePaneMaximize: (nonce) =>set((state) =>state.paneRequest?.nonce === nonce && state.paneRequest.maximize