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.

fix(ui): type the agents back stack as section ids

rubenluetke10-beep12d58916e236
diff --git a/jarvis/ui/web/frontend/src/hooks/useSectionHistory.ts b/jarvis/ui/web/frontend/src/hooks/useSectionHistory.ts
index ea3ad55179..172c1c4819 100644
--- a/jarvis/ui/web/frontend/src/hooks/useSectionHistory.ts
+++ b/jarvis/ui/web/frontend/src/hooks/useSectionHistory.ts
@@ -67,10 +67,11 @@ export const useSectionNavHistory = create<SectionNavHistoryState>((set, get) =>
// Agents has no sidebar. With no earlier visit, back still leaves it
// for the front page — that is what replaced the sidebar toggle.
if (section === "agents" && past.length === 0) {
+ const home: SectionId[] = ["agents", ...future];
set({
current: "chats",
past: [],
- future: ["agents", ...future].slice(0, MAX_HISTORY),
+ future: home.slice(0, MAX_HISTORY),
navigating: true,
});
useEventStore.getState().setActiveSection("chats");