From c7f29bdc33803197e3f22838efaf8d5efc6da644 Mon Sep 17 00:00:00 2001 From: how2ice Date: Thu, 28 May 2026 16:57:02 +0900 Subject: [PATCH] chore: test deploy snapshot --- src/app/main/appMaintenance.ts | 18 ++++++++++++++++-- src/app/main/pages/ChatSharePage.tsx | 16 +++++++++++++--- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/src/app/main/appMaintenance.ts b/src/app/main/appMaintenance.ts index 1ab9258..d100c8a 100644 --- a/src/app/main/appMaintenance.ts +++ b/src/app/main/appMaintenance.ts @@ -10,8 +10,22 @@ const PRESERVED_LOCAL_STORAGE_KEYS = new Set([ NOTIFICATION_DEVICE_ID_STORAGE_KEY, ]); -const APP_LOCAL_STORAGE_PREFIXES = ['work-', 'main-chat-panel:', 'gps-layer:', 'ai-code-app:'] as const; -const APP_SESSION_STORAGE_PREFIXES = ['work-', 'main-chat-panel:', 'gps-layer:', 'ai-code-app.'] as const; +const APP_LOCAL_STORAGE_PREFIXES = [ + 'work-', + 'main-chat-panel:', + 'gps-layer:', + 'ai-code-app:', + 'codex-live-share-', + 'chat-share-page:', +] as const; +const APP_SESSION_STORAGE_PREFIXES = [ + 'work-', + 'main-chat-panel:', + 'gps-layer:', + 'ai-code-app.', + 'codex-live-share-', + 'chat-share-page:', +] as const; export type ClientResetSummary = { removedLocalStorageKeys: string[]; diff --git a/src/app/main/pages/ChatSharePage.tsx b/src/app/main/pages/ChatSharePage.tsx index 139305a..0cb47bf 100644 --- a/src/app/main/pages/ChatSharePage.tsx +++ b/src/app/main/pages/ChatSharePage.tsx @@ -66,6 +66,7 @@ import { buildChatPath, buildPlayAppPath } from '../routes'; import type { PreviewKind } from '../mainChatPanel/previewKind'; import { normalizeChatResourceUrl } from '../mainChatPanel/chatResourceUrl'; import { forceReloadApp } from '../appUpdate'; +import { resetNonAuthClientState } from '../appMaintenance'; import type { ChatComposerAttachment, ChatConversationSummary, @@ -5641,7 +5642,10 @@ export function ChatSharePage() { return; } - void forceReloadApp(); + void (async () => { + await resetNonAuthClientState(); + await forceReloadApp(); + })(); }, []); const handleReloadProgram = useCallback(() => { @@ -6007,6 +6011,10 @@ export function ChatSharePage() { return; } + if (!snapshot || snapshot.detailLevel === 'initial') { + return; + } + if (shareRooms.some((room) => room.sessionId === requestedRoomSessionId)) { return; } @@ -6017,7 +6025,7 @@ export function ChatSharePage() { requestedRoomSessionIdRef.current = fallbackRoomSessionId; writeStoredShareLastRoomSessionId(normalizedToken, fallbackRoomSessionId || null); setRequestedRoomSessionId(fallbackRoomSessionId); - }, [activeShareRoomSessionId, normalizedToken, requestedRoomSessionId, shareRooms]); + }, [activeShareRoomSessionId, normalizedToken, requestedRoomSessionId, shareRooms, snapshot]); useEffect(() => { if (!normalizedToken) { return; @@ -8751,7 +8759,9 @@ export function ChatSharePage() { label: ( 강력 새로고침 - 서비스워커와 캐시를 정리한 뒤 현재 공유채팅방 화면을 다시 불러옵니다. + + 서비스워커, 캐시, 공유채팅 임시 저장 상태를 정리한 뒤 현재 공유채팅방 화면을 다시 불러옵니다. + ), icon: ,