The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): keep Bot Mode side chats in the Sessions sidebar
xxxigma1096016574e
diff --git a/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx b/apps/desktop/src/app/session/hooks/use-session-actions.test.tsxindex bd12429db02..0714101a692 100644--- a/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx+++ b/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx@@ -5220,7 +5220,7 @@ describe('openNewSessionTile workspace target', () => {vi.mocked(requestGatewayForAgent).mockReset()}- expect(createParams).toMatchObject({ hidden: true, profile: 'writer' })+ expect(createParams).toMatchObject({ profile: 'writer' })expect(createParams).not.toHaveProperty('model')expect(createParams).not.toHaveProperty('provider')expect(createParams).not.toHaveProperty('reasoning_effort')diff --git a/apps/desktop/src/app/session/hooks/use-session-actions/index.ts b/apps/desktop/src/app/session/hooks/use-session-actions/index.tsindex 82e4454fdb2..b631e36ba81 100644--- a/apps/desktop/src/app/session/hooks/use-session-actions/index.ts+++ b/apps/desktop/src/app/session/hooks/use-session-actions/index.ts@@ -952,16 +952,27 @@ export function useSessionActions({// flag) into the bot's chat; omitting them lets the selected profile// supply its configured defaults. Ordinary Sessions tiles keep the// sticky composer override.- const params = {- ...(await desktopSessionCreateParams(- cwd,- capturedRoute,- requestedProfile,- options?.route === null || defaultTarget?.route === null,- workspaceScope.workspaceMode !== 'bots'- )),- ...(workspaceScope.workspaceMode === 'bots' ? { hidden: true } : {})- }+ //+ // No `hidden` here, in either mode. Only Bot Mode's PLUMBING sessions+ // are born hidden, and each mints its own row: the canonical Bot Chat+ // (`hermes-bots/canonical-chat.ts`) and group member sessions+ // (`hermes-bots/group-turns.ts`). Every session this path creates is a+ // side chat the user asked for by hand — "New chat with this bot" and+ // the Bot Mode tab-strip "+" / ⌘T — so it is an ordinary conversation+ // in the bot's profile and stays listed, exactly as+ // `apps/desktop/src/AGENTS.md` and the hide sweep's title allow-list+ // (`hermes-bots/session-sweep.ts`) already promise. Blanket-hiding the+ // mode stranded them: unlisted in the Sessions sidebar, skipped by+ // `/resume`, and reachable only while their tab stayed open, since the+ // bot row opens the canonical chat and "Open recent session" reads+ // `last_session`, which never reports a hidden row.+ const params = await desktopSessionCreateParams(+ cwd,+ capturedRoute,+ requestedProfile,+ options?.route === null || defaultTarget?.route === null,+ workspaceScope.workspaceMode !== 'bots'+ )// Same lease chain as createBackendSessionForSend: owner socket held// across the create, then the foreground hold carries it until the