The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): hidden Bot Chats also stay out of the failed-profile carry
teknium1a50c748cf928
diff --git a/apps/desktop/src/app/chat/session-tile-actions.ts b/apps/desktop/src/app/chat/session-tile-actions.tsindex 070b27eae22..28aabb0ad7d 100644--- a/apps/desktop/src/app/chat/session-tile-actions.ts+++ b/apps/desktop/src/app/chat/session-tile-actions.ts@@ -13,6 +13,7 @@ import { SLASH_COMMAND_RE } from '@hermes/shared'import { useCallback, useMemo, useRef } from 'react'import type { ClientSessionState } from '@/app/types'+import type { WorkspaceMode } from '@/contrib/types'import { useI18n } from '@/i18n'import { textPart } from '@/lib/chat-messages'import { triggerHaptic } from '@/lib/haptics'@@ -42,8 +43,6 @@ import { clearSessionTodos } from '@/store/todos'import { setSessionDraftingTool } from '@/store/tool-drafting'import type { SessionInfo } from '@/types/hermes'-import type { WorkspaceMode } from '@/contrib/types'-import type { GatewayRequester } from '../contrib/types'import { uploadComposerAttachment } from '../session/hooks/use-prompt-actions'import {diff --git a/apps/desktop/src/store/session.test.ts b/apps/desktop/src/store/session.test.tsindex 81b9134d8c1..d6341c0dd56 100644--- a/apps/desktop/src/store/session.test.ts+++ b/apps/desktop/src/store/session.test.ts@@ -763,6 +763,20 @@ describe('carryForwardFailedProfileSessions', () => {'idle'])})++ it('does not carry a hidden row forward through a failed profile scan (#113273)', () => {+ // The failed-slice carry is the back door: a canonical Bot Chat parked in+ // the list by an owner-resolution upsert would ride the "keep what the+ // failed scan couldn't confirm" rule right back into the sidebar.+ const previous = [+ session({ hidden: true, id: 'bot-chat', profile: 'work', title: 'Bot Chat' }),+ session({ id: 'idle', profile: 'work' })+ ]++ const carried = carryForwardFailedProfileSessions(previous, [], [{ profile: 'work', error: 'disk I/O error' }])++ expect(carried.map(s => s.id)).toEqual(['idle'])+ })})describe('keepFailedProfileMeta', () => {