Skip to content

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.

835 B
Raw Blame
/** Leave the ship for the real session: the Agentic IDE with that pane maximized. */
import type { WorkspacePaneRow } from "@/lib/agenticIdeApi";
import { useEventStore } from "@/store/events";
import { useIdeChatStore } from "@/store/ideChat";
import { useIdeSidePanelStore } from "@/store/ideSidePanel";

export function openPaneSession(pane: Pick<WorkspacePaneRow, "workspace_id" | "name">): void {
  const events = useEventStore.getState();
  if (events.activeSection !== "agentic-ide") events.setActiveSection("agentic-ide");
  // The terminal opens full-size in the grid, live, the way the agent works in it.
  useIdeChatStore.getState().requestPane(pane.workspace_id, pane.name, { maximize: true });
  // A full-view side panel would hide the very pane it just focused.
  useIdeSidePanelStore.getState().setMaximized(false);
}