From 2326900129a89b454aa03473fd586582e93147db Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Thu, 24 Sep 2026 18:54:18 -0500 Subject: [PATCH] fix(desktop): import clearClarifyRequest from the clarify store MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to the stale-approval fix: clearClarifyRequest lives in @/store/clarify, not @/store/prompts — the wrong-module import slipped through because the prompts barrel happens to export similarly named clears. Caught by the vitest run of the new specs. --- .../hooks/use-message-stream/gateway-event/lifecycle.ts | 3 ++- .../hooks/use-message-stream/gateway-event/session-info.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/lifecycle.ts b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/lifecycle.ts index def9e97780..ee9a3d467b 100644 --- a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/lifecycle.ts +++ b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/lifecycle.ts @@ -12,7 +12,8 @@ import { type PetChangeMeta, setChangeEventsAvailable } from '@/store/live-sync' -import { clearAllPrompts, clearClarifyRequest } from '@/store/prompts' +import { clearClarifyRequest } from '@/store/clarify' +import { clearAllPrompts } from '@/store/prompts' import { markRuntimeGone } from '@/store/runtime-gone' import { dropSessionState, unbindTileRuntime } from '@/store/session-states' // Leaf import (not the `@/themes` barrel) to avoid pulling the ThemeProvider diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/session-info.ts b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/session-info.ts index 257f05fad1..3416be42f0 100644 --- a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/session-info.ts +++ b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/session-info.ts @@ -4,7 +4,8 @@ import { reconcileApprovalModeForProfile } from '@/store/approval-mode' import { reconcileSessionCompacting } from '@/store/compaction' import { requestDesktopOnboardingForCredentialWarning } from '@/store/onboarding' import { followActiveSessionCwd } from '@/store/projects' -import { clearAllPrompts, clearClarifyRequest } from '@/store/prompts' +import { clearClarifyRequest } from '@/store/clarify' +import { clearAllPrompts } from '@/store/prompts' import { $activeSessionId, $currentCwd,