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(sidebar): chat mode shows only the chats, the sections one button away, and the column starts at 400 px
rubenluetke10-beep979c7f6a41f9
diff --git a/jarvis/ui/web/frontend/src/App.tsx b/jarvis/ui/web/frontend/src/App.tsxindex 06b2815018..0dc1d139ca 100644--- a/jarvis/ui/web/frontend/src/App.tsx+++ b/jarvis/ui/web/frontend/src/App.tsx@@ -226,7 +226,7 @@ export default function App() {* Stopping at 200 px meant a workspace of a dozen terminals still gave a fifth* of the window to a nav list nobody was reading; the sidebar now collapses to* its icons instead (see `SIDEBAR_RAIL_AT_WIDTH`), and a double-click on the- * seam brings the full 280 px back.+ * seam brings the designed width back (`SIDEBAR_DEFAULT_WIDTH`).*/const sidebar = useResizablePane({storageKey: SIDEBAR_WIDTH_STORAGE_KEY,diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsxindex 7c1e7298c2..a6390c65bb 100644--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx@@ -757,10 +757,10 @@ describe("Sidebar collapse toggle", () => {describe("the Agentic IDE's chat face", () => {/*- * 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.+ * Chat mode in the IDE turns this column into the workspace's session+ * list and nothing else. The sections are one button away, and a row at+ * the top of them brings the chats back; every entry into chat mode+ * opens on the chats again (maintainer, 2026-08-27).*/beforeEach(() => {useIdeChatStore.setState({@@ -778,30 +778,69 @@ describe("the Agentic IDE's chat face", () => {});});- 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).+ test("shows only the workspace's chats by default", () => {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("sidebar-show-sections")).toBeTruthy();+ });++ test("reaches the sections behind one button and comes back", () => {+ useEventStore.setState({ activeSection: "agentic-ide" });+ renderSidebar(SIDEBAR_DEFAULT_WIDTH);++ act(() => {+ screen.getByTestId("sidebar-show-sections").click();+ });expect(screen.getByTestId("nav-row-settings")).toBeTruthy();+ expect(screen.queryByTestId("workspace-chats")).toBeNull();++ act(() => {+ screen.getByTestId("sidebar-show-chats").click();+ });+ expect(screen.getByTestId("workspace-chats")).toBeTruthy();+ expect(screen.queryByTestId("nav-row-settings")).toBeNull();});- 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.+ test("the IDE's own row is a request for its chats", () => {+ // From the sections, pressing the row the IDE itself answers to must not+ // leave the sections standing: it is the way back as much as the button.useEventStore.setState({ activeSection: "agentic-ide" });renderSidebar(SIDEBAR_DEFAULT_WIDTH);+ act(() => {+ screen.getByTestId("sidebar-show-sections").click();+ });act(() => {screen.getByTestId("nav-row-agentic-ide").click();});expect(screen.getByTestId("workspace-chats")).toBeTruthy();- expect(screen.getByTestId("nav-row-settings")).toBeTruthy();+ expect(screen.queryByTestId("nav-row-settings")).toBeNull();+ });++ test("opens on the chats again after the IDE was left and returned to", () => {+ useEventStore.setState({ activeSection: "agentic-ide" });+ renderSidebar(SIDEBAR_DEFAULT_WIDTH);++ act(() => {+ screen.getByTestId("sidebar-show-sections").click();+ });+ act(() => {+ screen.getByTestId("nav-row-settings").click();+ });+ // Another section: plain navigation, no way "back" to offer.+ expect(screen.queryByTestId("workspace-chats")).toBeNull();+ expect(screen.queryByTestId("sidebar-show-chats")).toBeNull();++ act(() => {+ useEventStore.setState({ activeSection: "agentic-ide" });+ });+ expect(screen.getByTestId("workspace-chats")).toBeTruthy();+ expect(screen.queryByTestId("nav-row-settings")).toBeNull();});/*@@ -819,24 +858,26 @@ describe("the Agentic IDE's chat face", () => {expect(screen.getByTestId("workspace-chats")).toBeTruthy();});- test("drops the chat block once nothing is open at all", () => {+ test("drops the chat face once nothing is open at all", () => {useEventStore.setState({ activeSection: "agentic-ide" });useIdeChatStore.setState({ workspace: null, workspaces: [] });renderSidebar(SIDEBAR_DEFAULT_WIDTH);expect(screen.queryByTestId("workspace-chats")).toBeNull();+ expect(screen.queryByTestId("sidebar-show-chats")).toBeNull();expect(screen.getByTestId("nav-row-settings")).toBeTruthy();});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.+ // workspace list has no business standing in that column.useEventStore.setState({ activeSection: "settings" });renderSidebar(SIDEBAR_DEFAULT_WIDTH);expect(screen.queryByTestId("workspace-chats")).toBeNull();+ expect(screen.queryByTestId("sidebar-show-chats")).toBeNull();expect(screen.getByTestId("nav-row-settings")).toBeTruthy();});});@@ -909,43 +950,3 @@ describe("the Chat row's history", () => {expect(screen.getByTestId("nav-row-chats")).toBeTruthy();});});--describe("the two areas of the chat face", () => {- beforeEach(() => {- vi.stubGlobal(- "fetch",- vi.fn(async (url: string) =>- String(url).startsWith("/api/chats")- ? new Response(JSON.stringify([]), { status: 200 })- : new Response(JSON.stringify({ sessions: [] }), { status: 200 }),- ),- );- useIdeChatStore.setState({- view: "chat",- workspace: { id: "w1", name: "Personal Jarvis", path: "/work/jarvis" },- workspaces: [{ id: "w1", name: "Personal Jarvis", folder: "/work/jarvis", active: true }],- });- });-- afterEach(() => {- cleanup();- vi.unstubAllGlobals();- useIdeChatStore.setState({ view: "grid", workspace: null, workspaces: [] });- });-- test("heads the sections while the workspace panel stands above them", () => {- useEventStore.setState({ activeSection: "agentic-ide" });- renderSidebar(SIDEBAR_DEFAULT_WIDTH);-- expect(screen.getByTestId("workspace-chats")).toBeTruthy();- expect(screen.getByTestId("sidebar-sections-heading")).toBeTruthy();- });-- test("drops the heading with the panel", () => {- useEventStore.setState({ activeSection: "settings" });- renderSidebar(SIDEBAR_DEFAULT_WIDTH);-- expect(screen.queryByTestId("workspace-chats")).toBeNull();- expect(screen.queryByTestId("sidebar-sections-heading")).toBeNull();- });-});diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsxindex 5b2dee29ba..2b1748bf1f 100644--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx@@ -1,7 +1,9 @@import {Loader2,ChevronDown,+ ChevronLeft,ChevronRight,+ LayoutList,PanelLeftClose,PanelLeftOpen,Plus,@@ -20,7 +22,7 @@ import { useSectionHealth } from "@/hooks/useProviders";import { usePluginAttention } from "@/hooks/usePluginAttention";import { useVoiceEngineDisplay } from "@/hooks/useVoiceEngineDisplay";import { cn } from "@/lib/utils";-import { useCallback, useMemo, useState, type ReactNode } from "react";+import { useCallback, useEffect, useMemo, useState, type ReactNode } from "react";import { useT } from "@/i18n";import { BrowserRealtimeControl } from "@/components/voice/BrowserRealtimeControl";import { SurfaceSwitch } from "@/components/home/SurfaceSwitch";@@ -108,8 +110,12 @@ export interface SidebarProps {/** Width the sidebar was designed at, and the one a double-click restores.* 320 since 2026-08-23: the front page's controls live in this column now- * and the maintainer dragged it wider on first use — that is the default. */-export const SIDEBAR_DEFAULT_WIDTH = 320;+ * and the maintainer dragged it wider on first use — that is the default.+ * 400 since 2026-08-27: the Agentic IDE's chat mode lists the workspace's+ * sessions by their titles, and at 320 a title was an ellipsis after four+ * words. The maintainer dragged the column to about 400 to read them and+ * asked for that to be where it starts. */+export const SIDEBAR_DEFAULT_WIDTH = 400;/*** localStorage key the dragged width is remembered under.@@ -122,8 +128,11 @@ export const SIDEBAR_DEFAULT_WIDTH = 320;* row holds twelve characters a line, so nothing about the redesign reached* the one box it was asked for. A new key seeds every column at the designed* width once; a dragged width is remembered again from there.+ *+ * `v3` with the 400 px default (same day): the wider column is the point of+ * the change, so every existing column is re-seeded at it once more.*/-export const SIDEBAR_WIDTH_STORAGE_KEY = "jarvis.sidebar.width.v2";+export const SIDEBAR_WIDTH_STORAGE_KEY = "jarvis.sidebar.width.v3";/*** Narrowest the sidebar goes: the nav icons, and nothing else.@@ -227,6 +236,23 @@ export function Sidebar({return next;});}, []);+ /*+ * Which face the chat mode's column wears: the chats, or the sections.+ *+ * The chats, by default and on every entry into chat mode — the column is+ * the workspace's session list then and nothing else, because that is+ * what chat mode is for (maintainer, 2026-08-27: "only the chats, with a+ * button for the rest, and a way back"). The sections stand behind one+ * button at the foot of the list, and a "back" row at the top of the+ * sections brings the chats back. Pressing any section row leaves the+ * sections face too: a section outside the IDE takes the chat face away+ * with it, and the IDE's own row is a request for the IDE — its chats.+ * Not remembered on purpose: chat mode always opens on the chats.+ */+ const [sectionsShown, setSectionsShown] = useState(false);+ useEffect(() => {+ if (chatFace) setSectionsShown(false);+ }, [chatFace]);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@@ -487,32 +513,57 @@ export function Sidebar({// shortcut) from its own sources, so nothing here has to be threaded in.<DockRail className="min-h-0 flex-1" />) : (- // 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.+ // ONE scrolling body, whatever is in it. In the IDE's chat mode it is+ // the workspace's session list, with the sections one button away and+ // one button back (see `sectionsShown`); everywhere else it is the+ // navigation. One face at a time: the two stacked in one column read+ // as one long list with no seam (maintainer report 2026-08-27), and+ // the sessions are what chat mode is for.<div className="flex min-h-0 flex-1 flex-col overflow-y-auto scrollbar-jarvis">- {/* Two areas with an edge between them, not one run of rows. The- workspace block is its own framed panel (see WorkspaceChats) and- the navigation under it gets a heading of its own for as long as- the panel is there — with the workspaces, their sessions and the- sections all drawn as the same kind of row, the column read as one- long list with no seam (maintainer report 2026-08-27). */}- {chatFace && (+ {chatFace && !sectionsShown ? (<><WorkspaceChats />- <div- data-testid="sidebar-sections-heading"- className="px-4 pb-0.5 pt-3 font-mono text-[10px] font-medium uppercase tracking-[0.12em] text-muted-foreground/60"+ <button+ type="button"+ onClick={() => setSectionsShown(true)}+ data-testid="sidebar-show-sections"+ className={cn(+ "group mx-2 mb-2 mt-3 flex shrink-0 items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",+ "text-muted-foreground hover:bg-background/20 hover:text-foreground",+ "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ )}>- {t("sidebar.sections")}- </div>+ <LayoutList+ aria-hidden+ className="h-4 w-4 shrink-0 text-muted-foreground transition-colors group-hover:text-foreground"+ />+ <span className="flex-1 text-left">{t("sidebar.sections")}</span>+ <ChevronRight+ aria-hidden+ className="h-4 w-4 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5 group-hover:text-primary"+ />+ </button></>- )}+ ) : (<nav className="p-2">+ {chatFace && (+ <button+ type="button"+ onClick={() => setSectionsShown(false)}+ data-testid="sidebar-show-chats"+ className={cn(+ "group mb-2 flex w-full items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",+ "text-muted-foreground hover:bg-background/20 hover:text-foreground",+ "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ )}+ >+ <ChevronLeft+ aria-hidden+ className="h-4 w-4 shrink-0 text-muted-foreground transition-transform group-hover:-translate-x-0.5 group-hover:text-primary"+ />+ <span className="flex-1 text-left">{t("sidebar.back_to_chats")}</span>+ </button>+ )}{NAV_GROUPS.map((group, groupIndex) => (<ulkey={groupIndex}@@ -568,11 +619,12 @@ export function Sidebar({// 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={() =>+ onClick={() => {+ setSectionsShown(false);setActive(item.id === "skills" && pluginsNeedReconnect ? "plugins" : item.id,- )- }+ );+ }}>{item.id === "chats" && chatsOpen ? <RecentChats /> : null}</NavRow>@@ -581,6 +633,7 @@ export function Sidebar({</ul>))}</nav>+ )}</div>)}diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 387efc2256..84e4c50117 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -474,6 +474,7 @@"see_all_chats": "Alle Chats ansehen","chats_expand": "Letzte Chats anzeigen","chats_collapse": "Letzte Chats ausblenden",+ "back_to_chats": "Zurück zu den Chats","sections": "Bereiche","collapse": "Navigation einklappen","expand": "Navigation ausklappen",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex e78cbffd4b..310ff1a6ef 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -474,6 +474,7 @@"see_all_chats": "See all chats","chats_expand": "Show recent chats","chats_collapse": "Hide recent chats",+ "back_to_chats": "Back to chats","sections": "Sections","collapse": "Collapse the navigation","expand": "Expand the navigation",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex a721545302..dfd2e663dc 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -474,6 +474,7 @@"see_all_chats": "Ver todos los chats","chats_expand": "Mostrar chats recientes","chats_collapse": "Ocultar chats recientes",+ "back_to_chats": "Volver a los chats","sections": "Secciones","collapse": "Contraer la navegación","expand": "Expandir la navegación",