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(agentic-ide): chat mode shows the workspace's sessions and the sections together

rubenluetke10-beep2b8489069d4c
diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceChats.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceChats.test.tsx
index 01ebd350ca..d5eade7e4f 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceChats.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceChats.test.tsx
@@ -78,7 +78,6 @@ describe("the sidebar's chat face", () => {
addWorkspaceRequest: null,
stagedPane: "T1",
view: "chat",
- sidebarFace: "chats",
workspace: { id: "w1", name: "Personal Jarvis", path: HERE },
workspaces: [
{ id: "w1", name: "Personal Jarvis", folder: HERE, active: true },
@@ -215,10 +214,13 @@ describe("the sidebar's chat face", () => {
expect(useIdeChatStore.getState().sessionRequest).toMatchObject({ nonce: 1 });
});
- it("hands the navigation back through a button that says so", () => {
+ it("keeps no way out of its own, because it never took the column", () => {
+ // The block used to REPLACE the sections and offer a "Sections" button
+ // back — a swap that cost the sessions whenever a section was wanted
+ // (maintainer report 2026-08-27). It leads the column now and the
+ // sections follow underneath it, so there is nothing to go back from.
render(<WorkspaceChats />);
- fireEvent.click(screen.getByTestId("workspace-chats-back"));
- expect(useIdeChatStore.getState().sidebarFace).toBe("sections");
+ expect(screen.queryByTestId("workspace-chats-back")).toBeNull();
});
it("says so when nothing is open", () => {
diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceChats.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceChats.tsx
index e3ab586bc6..68e40a3c14 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceChats.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceChats.tsx
@@ -1,5 +1,5 @@
import { useRef, useState } from "react";
-import { ChevronLeft, Folder, FolderPlus, Plus } from "lucide-react";
+import { Folder, FolderPlus, Plus } from "lucide-react";
import {
AgentPickerMenu,
@@ -34,15 +34,20 @@ import { fill, useT } from "@/i18n";
* workspace to the front. Opening a terminal asks WHICH CLI first when the
* machine offers more than one, exactly like the grid's own split menus.
*
- * The way back is the first thing in the column, not a hidden gesture: a
- * sidebar that swallows the navigation with no visible exit is a trap, so the
- * "Sections" button sits at the top where a back button belongs.
+ * This block does NOT own the column — it sits at the top of it and the
+ * sections follow underneath (see `Sidebar`). It used to REPLACE them, with a
+ * "Sections" button as the way back, and that button was a one-way door in
+ * both directions: pressing it took the sessions away, and there was no state
+ * in which the maintainer could see a section and a session at once
+ * (maintainer report 2026-08-27). So there is no back button any more, and
+ * nothing to go back from. The list scrolls with the sections rather than
+ * inside its own frame — two scrollbars in one 320 px column read as a
+ * rendering fault.
*/
export function WorkspaceChats() {
const t = useT();
const workspaces = useIdeChatStore((s) => s.workspaces);
const agents = useIdeChatStore((s) => s.agents);
- const setSidebarFace = useIdeChatStore((s) => s.setSidebarFace);
const requestPane = useIdeChatStore((s) => s.requestPane);
const requestTerminal = useIdeChatStore((s) => s.requestTerminal);
const requestWorkspace = useIdeChatStore((s) => s.requestWorkspace);
@@ -53,20 +58,8 @@ export function WorkspaceChats() {
const panes = useWorkspacePanes();
return (
- <div className="flex min-h-0 flex-1 flex-col" data-testid="workspace-chats">
- <div className="shrink-0 px-2 pb-2 pt-2">
- <button
- type="button"
- data-testid="workspace-chats-back"
- onClick={() => setSidebarFace("sections")}
- className="flex w-full items-center gap-2 rounded-lg border border-border bg-card px-2.5 py-1.5 text-xs font-medium text-foreground transition-colors hover:border-primary/40 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
- >
- <ChevronLeft aria-hidden className="h-3.5 w-3.5 text-muted-foreground" />
- {t("ide_chats.back_to_sections")}
- </button>
- </div>
-
- <div className="min-h-0 flex-1 overflow-y-auto scrollbar-jarvis px-1 pb-3">
+ <div data-testid="workspace-chats">
+ <div className="px-1 pb-3 pt-2">
{workspaces.length === 0 ? (
<p className="px-3 py-2 text-[11px] text-muted-foreground/70">
{t("ide_chats.no_workspaces")}
diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx
index f59fc5fda8..361b592451 100644
--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx
@@ -757,14 +757,14 @@ describe("Sidebar collapse toggle", () => {
describe("the Agentic IDE's chat face", () => {
/*
- * Chat mode in the IDE borrows this column for the workspace's chats. What
- * these pin is that the takeover is BOUNDED: it only happens on that
- * section, and there is always a way back to the sections.
+ * Chat mode in the IDE puts the workspace's chats at the TOP of this column
+ * and leaves the sections underneath them. What these pin is that the two
+ * are never alternatives — the sessions and the section list are on screen
+ * together — and that the chats appear only on that section.
*/
beforeEach(() => {
useIdeChatStore.setState({
view: "chat",
- sidebarFace: "chats",
workspace: { id: "w1", name: "Personal Jarvis", path: "/work/jarvis" },
workspaces: [{ id: "w1", name: "Personal Jarvis", folder: "/work/jarvis", active: true }],
});
@@ -773,30 +773,34 @@ describe("the Agentic IDE's chat face", () => {
afterEach(() => {
useIdeChatStore.setState({
view: "grid",
- sidebarFace: "chats",
workspace: null,
workspaces: [],
});
});
- test("shows the workspace's chats instead of the sections", () => {
+ test("shows the workspace's chats AND the sections at once", () => {
+ // The regression this replaces: the column swapped between the two, so
+ // reaching a section threw the session list away and reaching the
+ // sessions threw the navigation away (maintainer report 2026-08-27).
useEventStore.setState({ activeSection: "agentic-ide" });
renderSidebar(SIDEBAR_DEFAULT_WIDTH);
expect(screen.getByTestId("workspace-chats")).toBeTruthy();
- expect(screen.queryByTestId("nav-row-settings")).toBeNull();
+ expect(screen.getByTestId("nav-row-settings")).toBeTruthy();
});
- test("hands the sections back when the back button is pressed", () => {
+ test("keeps the chats while a section row is pressed", () => {
+ // Pressing a section that the IDE itself answers to (the row is the IDE's
+ // own) must not fold the session list away underneath the click.
useEventStore.setState({ activeSection: "agentic-ide" });
renderSidebar(SIDEBAR_DEFAULT_WIDTH);
act(() => {
- screen.getByTestId("workspace-chats-back").click();
+ screen.getByTestId("nav-row-agentic-ide").click();
});
- expect(screen.queryByTestId("workspace-chats")).toBeNull();
+ expect(screen.getByTestId("workspace-chats")).toBeTruthy();
expect(screen.getByTestId("nav-row-settings")).toBeTruthy();
});
@@ -815,7 +819,7 @@ describe("the Agentic IDE's chat face", () => {
expect(screen.getByTestId("workspace-chats")).toBeTruthy();
});
- test("gives the navigation back once nothing is open at all", () => {
+ test("drops the chat block once nothing is open at all", () => {
useEventStore.setState({ activeSection: "agentic-ide" });
useIdeChatStore.setState({ workspace: null, workspaces: [] });
@@ -825,9 +829,9 @@ describe("the Agentic IDE's chat face", () => {
expect(screen.getByTestId("nav-row-settings")).toBeTruthy();
});
- test("leaves every other section its navigation", () => {
- // The IDE is in chat mode, but the user is reading another section:
- // taking the navigation away there would be a takeover nobody asked for.
+ test("leaves every other section its plain navigation", () => {
+ // The IDE is in chat mode, but the user is reading another section: its
+ // workspace list has no business standing on top of that column.
useEventStore.setState({ activeSection: "settings" });
renderSidebar(SIDEBAR_DEFAULT_WIDTH);
diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
index 79bf1fe2b4..6575ef5410 100644
--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
@@ -139,18 +139,23 @@ export function Sidebar({
// see `presentNavItem`.
const surface = useHomeStore((s) => s.surface);
/*
- * The Agentic IDE in chat mode borrows this column for ITS chats.
+ * The Agentic IDE in chat mode puts ITS chats at the top of this column.
*
* Chat mode is a surface, not a layout — the conversations you are having in
* the workspace you opened, grouped by folder — and a chat surface with its
* history two clicks away is a chat surface nobody uses. So while it is on,
- * the sections step aside and `WorkspaceChats` takes the column, with its own
- * button back (`sidebarFace`). Only while the IDE is the section on screen:
- * leaving it must give the navigation straight back.
+ * `WorkspaceChats` leads the column and the sections follow underneath.
+ *
+ * It used to TAKE the column instead, with a "Sections" button swapping the
+ * two faces. That made the two halves of the navigation mutually exclusive:
+ * asking for a section threw the sessions away, and there was no state that
+ * showed both (maintainer report 2026-08-27). Stacked, nothing is ever a
+ * click away from being lost — the sessions stay put while a section is
+ * picked, and the sections stay reachable while the sessions are read.
+ * Only while the IDE is the section on screen: every other section gets the
+ * plain navigation, with no workspace list bolted on top of it.
*/
const ideView = useIdeChatStore((s) => s.view);
- const ideSidebarFace = useIdeChatStore((s) => s.sidebarFace);
- const setIdeSidebarFace = useIdeChatStore((s) => s.setSidebarFace);
/*
* Is there anything for this column to list?
*
@@ -169,8 +174,7 @@ export function Sidebar({
*/
const ideWorkspaceOpen = useIdeChatStore((s) => s.workspaces.length > 0);
const onIdeSection = IDE_SECTIONS.includes(active);
- const chatFace =
- onIdeSection && ideWorkspaceOpen && ideView === "chat" && ideSidebarFace === "chats";
+ const chatFace = onIdeSection && ideWorkspaceOpen && ideView === "chat";
const resetTranscript = useHomeStore((s) => s.resetTranscript);
// On the voice stage: clear the lane, drop the open voice thread and let the
// backend forget the one it was seeded with. We stay on Voice and the mic
@@ -428,68 +432,78 @@ export function Sidebar({
// API-Keys error pip, the plugin reconnect pip, the Skills → Plugins
// shortcut) from its own sources, so nothing here has to be threaded in.
<DockRail className="min-h-0 flex-1" />
- ) : chatFace ? (
- <WorkspaceChats />
) : (
- <nav className="flex-1 overflow-y-auto scrollbar-jarvis p-2">
- {/* One list, not two: a voice session IS a run, and showing it as
- "recent run" and "recent chat" read as a duplicate (maintainer,
- 2026-08-23). The Run Inspector keeps the run view. */}
- <RecentChats />
- <div className="mx-1 mb-1 mt-2 border-t border-border/60" aria-hidden />
- {NAV_GROUPS.map((group, groupIndex) => (
- <ul
- key={groupIndex}
- className={cn(
- "space-y-0.5",
- // Thin divider + breathing room above every group after the first.
- groupIndex > 0 && "mt-2 border-t border-border/40 pt-2",
- )}
- >
- {group.map((raw) => {
- const item = presentNavItem(raw, surface);
- return (
- <NavRow
- key={item.id}
- item={item}
- label={resolveNavLabel(t, item)}
- active={item.matchIds ? item.matchIds.includes(active) : item.id === active}
- badge={item.id === "agents" ? agentsCount : undefined}
- betaLabel={item.beta ? t("nav.agentic_ide_beta") : undefined}
- alert={item.id === "apikeys" ? apikeysHasError : false}
- alertTitle={t("sidebar.apikeys_alert")}
- warn={
- item.id === "skills"
- ? pluginsNeedReconnect
- : item.id === "local-models"
- ? localModelsNeedAttention
- : false
- }
- warnTitle={
- item.id === "local-models"
- ? localModelsHealth?.detail || localModelsHealth?.reason || undefined
- : pluginWarnTitle
- }
- // A plugin problem sends the "Skills & Tools" row straight into
- // the Plugins tab (where the banner + jump button are), so one
- // click lands on the fix instead of the default Skills tab.
- onClick={() => {
- // Pressing the IDE row while its chat surface is already
- // open is the way BACK to the chats — otherwise the
- // "Sections" button would be a one-way door.
- if (IDE_SECTIONS.includes(item.id) && ideView === "chat") {
- setIdeSidebarFace("chats");
+ // ONE scrolling body, whatever is in it. While the IDE's chat mode is
+ // on, the workspace's sessions lead it and the sections follow; the
+ // two used to be alternatives and the maintainer could reach only one
+ // of them at a time. Both lists scroll together on purpose: two
+ // scrollbars three pixels apart in a 320 px column read as a fault,
+ // and a fixed session list with its own scrollbar would put a hard
+ // ceiling on how many sessions a workspace may show.
+ <div className="flex min-h-0 flex-1 flex-col overflow-y-auto scrollbar-jarvis">
+ {chatFace && (
+ <>
+ <WorkspaceChats />
+ <div className="mx-3 border-t border-border/60" aria-hidden />
+ </>
+ )}
+ <nav className="p-2">
+ {/* One list, not two: a voice session IS a run, and showing it as
+ "recent run" and "recent chat" read as a duplicate (maintainer,
+ 2026-08-23). The Run Inspector keeps the run view.
+ Safe to stand under the workspace bands: this lists the front
+ page's own conversations, never the IDE's coding sessions (see
+ RecentChats) — the two never name the same thing twice. */}
+ <RecentChats />
+ <div className="mx-1 mb-1 mt-2 border-t border-border/60" aria-hidden />
+ {NAV_GROUPS.map((group, groupIndex) => (
+ <ul
+ key={groupIndex}
+ className={cn(
+ "space-y-0.5",
+ // Thin divider + breathing room above every group after the first.
+ groupIndex > 0 && "mt-2 border-t border-border/40 pt-2",
+ )}
+ >
+ {group.map((raw) => {
+ const item = presentNavItem(raw, surface);
+ return (
+ <NavRow
+ key={item.id}
+ item={item}
+ label={resolveNavLabel(t, item)}
+ active={item.matchIds ? item.matchIds.includes(active) : item.id === active}
+ badge={item.id === "agents" ? agentsCount : undefined}
+ betaLabel={item.beta ? t("nav.agentic_ide_beta") : undefined}
+ alert={item.id === "apikeys" ? apikeysHasError : false}
+ alertTitle={t("sidebar.apikeys_alert")}
+ warn={
+ item.id === "skills"
+ ? pluginsNeedReconnect
+ : item.id === "local-models"
+ ? localModelsNeedAttention
+ : false
+ }
+ warnTitle={
+ item.id === "local-models"
+ ? localModelsHealth?.detail || localModelsHealth?.reason || undefined
+ : pluginWarnTitle
+ }
+ // A plugin problem sends the "Skills & Tools" row straight into
+ // the Plugins tab (where the banner + jump button are), so one
+ // click lands on the fix instead of the default Skills tab.
+ onClick={() =>
+ setActive(
+ item.id === "skills" && pluginsNeedReconnect ? "plugins" : item.id,
+ )
}
- setActive(
- item.id === "skills" && pluginsNeedReconnect ? "plugins" : item.id,
- );
- }}
- />
- );
- })}
- </ul>
- ))}
- </nav>
+ />
+ );
+ })}
+ </ul>
+ ))}
+ </nav>
+ </div>
)}
<div className={cn("border-t border-border", railed ? "p-1.5" : "p-3")}>
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index 7527e94c12..b1d07682ff 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -4837,7 +4837,6 @@
}
},
"ide_chats": {
- "back_to_sections": "Bereiche",
"workspace_band": "Workspace {n}",
"active": "Aktiv",
"no_folder": "Kein Ordner",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index b30d609c94..f06ce65da7 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -4837,7 +4837,6 @@
}
},
"ide_chats": {
- "back_to_sections": "Sections",
"workspace_band": "Workspace {n}",
"active": "Active",
"no_folder": "No folder",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index ff7793cac1..02b441a811 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -4837,7 +4837,6 @@
}
},
"ide_chats": {
- "back_to_sections": "Secciones",
"workspace_band": "Workspace {n}",
"active": "Activo",
"no_folder": "Sin carpeta",
diff --git a/jarvis/ui/web/frontend/src/store/ideChat.ts b/jarvis/ui/web/frontend/src/store/ideChat.ts
index bae46e8d35..499f4abe3e 100644
--- a/jarvis/ui/web/frontend/src/store/ideChat.ts
+++ b/jarvis/ui/web/frontend/src/store/ideChat.ts
@@ -29,15 +29,6 @@ export interface IdeWorkspace {
path: string;
}
-/**
- * The sidebar's two faces while chat mode is on.
- *
- * Chat mode takes the sidebar over for the workspace's conversations, and a
- * takeover with no way out is a trap — so "sections" is the face the back
- * button returns to, and the sections are all still there.
- */
-export type IdeSidebarFace = "chats" | "sections";
-
/**
* A session list asking for one pane to be brought to the front.
*
@@ -83,7 +74,6 @@ export interface TerminalRequest {
interface IdeChatStore {
view: WorkspaceView;
workspace: IdeWorkspace | null;
- sidebarFace: IdeSidebarFace;
paneRequest: PaneRequest | null;
/** Every open workspace, in the bar's order — the sidebar's bands. */
workspaces: IdeWorkspaceRow[];
@@ -117,7 +107,6 @@ interface IdeChatStore {
setView: (next: WorkspaceView) => void;
setWorkspace: (next: IdeWorkspace | null) => void;
- setSidebarFace: (next: IdeSidebarFace) => void;
/** Bring a pane to the front, switching workspace first when it lives elsewhere. */
requestPane: (workspaceId: string, pane: string) => void;
setStagedPane: (pane: string | null) => void;
@@ -135,7 +124,6 @@ interface IdeChatStore {
export const useIdeChatStore = create<IdeChatStore>((set) => ({
view: storedViewMode() ?? "grid",
workspace: null,
- sidebarFace: "chats",
paneRequest: null,
stagedPane: null,
workspaces: [],
@@ -147,14 +135,10 @@ export const useIdeChatStore = create<IdeChatStore>((set) => ({
setView: (next) => {
rememberViewMode(next);
- // Entering chat always shows the chats: someone who just pressed "Chat"
- // asked for the conversations, and leaving the sidebar on the section
- // list they were reading a minute ago would hide what they came for.
- set(next === "chat" ? { view: next, sidebarFace: "chats" } : { view: next });
+ set({ view: next });
},
setWorkspace: (next) => set({ workspace: next }),
- setSidebarFace: (next) => set({ sidebarFace: next }),
requestPane: (workspaceId, pane) =>
set((state) => ({
paneRequest: { workspaceId, pane, nonce: (state.paneRequest?.nonce ?? 0) + 1 },