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.

feat(chat): make the coding section BE the new chat surface, not a page beside it

rubenluetke10-beep07b0d8e28578
diff --git a/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.tsx b/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.tsx
index 64acc8f74b..1f0047a57b 100644
--- a/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.tsx
@@ -62,7 +62,7 @@ export function CodingModeBadge() {
// Not aria-pressed: this button navigates, it does not toggle the mode.
// Claiming a pressed state for something it cannot change would be a lie
// to exactly the users who depend on it most.
- disabled={activeSection === "agentic-ide"}
+ disabled={activeSection === "agentic-ide" || activeSection === "agentic-ide-classic"}
className={cn(
"mr-auto inline-flex items-center gap-1.5 rounded-md border px-2.5 py-1",
"text-xs font-medium transition-colors disabled:cursor-default",
diff --git a/jarvis/ui/web/frontend/src/components/layout/MainView.sticky.test.tsx b/jarvis/ui/web/frontend/src/components/layout/MainView.sticky.test.tsx
index 94df6a1668..021b7317cd 100644
--- a/jarvis/ui/web/frontend/src/components/layout/MainView.sticky.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/MainView.sticky.test.tsx
@@ -70,7 +70,7 @@ afterEach(() => {
vi.clearAllMocks();
});
-describe("MainView — the Agentic IDE is sticky", () => {
+describe("MainView — the classic terminal grid is sticky", () => {
it("does not mount the IDE for a user who never opens it", async () => {
render(<MainView />);
await screen.findByTestId("chats-stub");
@@ -83,7 +83,7 @@ describe("MainView — the Agentic IDE is sticky", () => {
it("keeps the same instance mounted across a section change", async () => {
render(<MainView />);
- goTo("agentic-ide");
+ goTo("agentic-ide-classic");
await screen.findByTestId("ide-stub");
expect(ide.mounts).toBe(1);
@@ -95,7 +95,7 @@ describe("MainView — the Agentic IDE is sticky", () => {
expect(screen.getByTestId("ide-stub")).toBeTruthy();
expect(ide.mounts).toBe(1);
- goTo("agentic-ide");
+ goTo("agentic-ide-classic");
await waitFor(() =>
expect(screen.queryByTestId("outputs-stub")).toBeNull(),
);
@@ -104,7 +104,7 @@ describe("MainView — the Agentic IDE is sticky", () => {
it("hides the IDE while another section is on screen", async () => {
render(<MainView />);
- goTo("agentic-ide");
+ goTo("agentic-ide-classic");
await screen.findByTestId("ide-stub");
const sticky = screen.getByTestId("sticky-agentic-ide");
@@ -120,7 +120,7 @@ describe("MainView — the Agentic IDE is sticky", () => {
it("tells the IDE whether it is the section on screen", async () => {
render(<MainView />);
- goTo("agentic-ide");
+ goTo("agentic-ide-classic");
await screen.findByTestId("ide-stub");
expect(ide.lastOnScreen).toBe(true);
@@ -135,7 +135,7 @@ describe("MainView — the Agentic IDE is sticky", () => {
it("shows only the IDE while it is the active section", async () => {
render(<MainView />);
- goTo("agentic-ide");
+ goTo("agentic-ide-classic");
await screen.findByTestId("ide-stub");
// Two live copies of a workspace would fight over every pane's output
diff --git a/jarvis/ui/web/frontend/src/components/layout/MainView.tsx b/jarvis/ui/web/frontend/src/components/layout/MainView.tsx
index 9f949879b8..b5060f9311 100644
--- a/jarvis/ui/web/frontend/src/components/layout/MainView.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/MainView.tsx
@@ -226,8 +226,14 @@ function ViewLoadingFallback() {
return <div className="h-full w-full" aria-busy="true" />;
}
-/** The one section that is hidden rather than unmounted — see `MainView`. */
-const STICKY_SECTION = "agentic-ide";
+/**
+ * The one section that is hidden rather than unmounted — see `MainView`.
+ *
+ * It is the CLASSIC terminal grid, not the chat surface that took over the
+ * "agentic-ide" id: what makes a section too destructive to unmount is live
+ * panes, and the grid is where those live.
+ */
+const STICKY_SECTION = "agentic-ide-classic";
/**
* Main area to the right of the sidebar. Views are switched the classic way
@@ -313,6 +319,11 @@ export function MainView() {
function SwitchOnActiveSection({ active }: { active: string }) {
switch (active) {
+ // The rebuilt chat surface IS the coding section now. Both ids reach it:
+ // "agentic-ide" because that is where every existing entry point, deep
+ // link and voice command already goes, and "chat-workspace" because that
+ // is what it is called.
+ case "agentic-ide":
case "chat-workspace":
return <ChatWorkspaceView />;
case "chats":
diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
index 098c42540e..3964851673 100644
--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
@@ -17,7 +17,7 @@ import {
Contact,
MessageSquareWarning,
ScrollText,
- SquareTerminal,
+ MessagesSquare,
Loader2,
type LucideIcon,
ChevronRight,
@@ -151,16 +151,20 @@ const NAV_GROUPS: NavItem[][] = [
{ id: "socials", labelKey: "nav.socials", icon: Share2 },
{ id: "feedback", labelKey: "nav.feedback", icon: MessageSquareWarning },
],
- // 5) Agentic IDE — its own bottom group on purpose. It is not one more page
- // among the tools above: opening it puts real coding agents to work in a
+ // 5) The coding chat — its own bottom group on purpose. It is not one more
+ // page among the tools above: opening it puts real coding agents to work in a
// folder and can narrow the assistant to that workspace, so it sits apart
// with its own divider rather than blending into the list.
[
{
id: "agentic-ide",
- labelKey: "nav.agentic_ide",
- icon: SquareTerminal,
- fallbackLabel: "Agentic IDE",
+ labelKey: "nav.chat_workspace",
+ icon: MessagesSquare,
+ fallbackLabel: "Chat",
+ // The classic grid is the same destination as far as the row is
+ // concerned: someone who stepped back into it should still see where
+ // they are in the navigation.
+ matchIds: ["agentic-ide", "chat-workspace", "agentic-ide-classic"],
beta: true,
},
],
diff --git a/jarvis/ui/web/frontend/src/components/layout/TopBar.test.tsx b/jarvis/ui/web/frontend/src/components/layout/TopBar.test.tsx
index d675b9cfec..4eeee906b2 100644
--- a/jarvis/ui/web/frontend/src/components/layout/TopBar.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/TopBar.test.tsx
@@ -121,9 +121,9 @@ describe("TopBar restart button", () => {
* through that Restart button, so a refactor that quietly drops it from the IDE
* would leave the section with no way to pick up its own rebuild.
*/
-describe("TopBar in the Agentic IDE", () => {
+describe("TopBar in the classic terminal grid", () => {
it("renders no bar of its own there", () => {
- useEventStore.setState({ activeSection: "agentic-ide" });
+ useEventStore.setState({ activeSection: "agentic-ide-classic" });
const { container } = render(<TopBar />);
@@ -131,7 +131,7 @@ describe("TopBar in the Agentic IDE", () => {
});
it("still offers the restart through the actions the IDE carries", () => {
- useEventStore.setState({ activeSection: "agentic-ide" });
+ useEventStore.setState({ activeSection: "agentic-ide-classic" });
render(<TopBarActions />);
diff --git a/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx b/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx
index 560c77abda..ee7f0bf68c 100644
--- a/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx
@@ -39,7 +39,12 @@ const CONFIRM_TIMEOUT_MS = 4000;
export function TopBar() {
const activeSection = useEventStore((s) => s.activeSection);
- if (activeSection === "agentic-ide") return null;
+ // ONLY the classic terminal grid takes the actions into its own row. The
+ // rebuilt chat surface has no such row, so hiding the bar there would take
+ // Restart — the one control a frontend change is reached through — off the
+ // screen entirely. The rule is "the section carries the actions itself",
+ // never "the section is called agentic-ide".
+ if (activeSection === "agentic-ide-classic") return null;
return (
<div className="flex h-10 shrink-0 items-center justify-end gap-2 border-b border-border bg-background/70 px-4 backdrop-blur-sm">
diff --git a/jarvis/ui/web/frontend/src/store/events.ts b/jarvis/ui/web/frontend/src/store/events.ts
index d9839eff01..02b9e56b6f 100644
--- a/jarvis/ui/web/frontend/src/store/events.ts
+++ b/jarvis/ui/web/frontend/src/store/events.ts
@@ -73,7 +73,11 @@ export type SectionId =
| "agentic-ide"
// The rebuilt chat surface — projects, their chats, one conversation on
// screen. Lives alongside "agentic-ide" until its parity checklist is empty.
- | "chat-workspace";
+ | "chat-workspace"
+ // The OLD terminal grid. "agentic-ide" now opens the rebuilt chat surface,
+ // so the grid needs an id of its own — it still holds live panes and must
+ // stay reachable while the new surface grows into full parity.
+ | "agentic-ide-classic";
export const SECTION_IDS = [
"chats",
@@ -111,6 +115,7 @@ export const SECTION_IDS = [
"voice-api-keys",
"agentic-ide",
"chat-workspace",
+ "agentic-ide-classic",
] as const satisfies readonly SectionId[];
export function isSectionId(value: unknown): value is SectionId {
@@ -157,6 +162,7 @@ export const SECTION_LABELS: Record<SectionId, string> = {
"voice-api-keys": "Voice Input Keys",
"agentic-ide": "Agentic IDE",
"chat-workspace": "Chat",
+ "agentic-ide-classic": "Terminal grid",
};
export interface EventItem {
diff --git a/jarvis/ui/web/frontend/src/views/ChatWorkspaceView.tsx b/jarvis/ui/web/frontend/src/views/ChatWorkspaceView.tsx
index ac0e560edc..faf93e9442 100644
--- a/jarvis/ui/web/frontend/src/views/ChatWorkspaceView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ChatWorkspaceView.tsx
@@ -18,6 +18,7 @@ import {
Compass,
FileCode2,
FolderOpen,
+ LayoutGrid,
ListChecks,
PanelRight,
Sparkles,
@@ -296,6 +297,16 @@ export function ChatWorkspaceView() {
<X className="h-3.5 w-3.5" aria-hidden />
</button>
)}
+ <button
+ type="button"
+ data-testid="open-classic-grid"
+ onClick={() => setActiveSection("agentic-ide-classic")}
+ title="Open the classic terminal grid"
+ className="flex h-7 items-center gap-1.5 rounded-md px-2 text-[11px] text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground"
+ >
+ <LayoutGrid className="h-3.5 w-3.5" aria-hidden />
+ Terminal grid
+ </button>
<button
type="button"
onClick={() => setTools((v) => !v)}