From 53dde7c7d06922803935ca4d01c57e59d422abd5 Mon Sep 17 00:00:00 2001 From: areum117 Date: Tue, 30 Jun 2026 10:49:41 +0900 Subject: [PATCH] =?UTF-8?q?fix(planner):=20=EA=B3=84=ED=9A=8D=20=EC=A0=80?= =?UTF-8?q?=EC=9E=A5=20=EC=8B=9C=20=EB=AA=A8=EB=8B=AC=20=EB=8B=AB=ED=9E=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/planner-chat/plannerChat.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/features/planner-chat/plannerChat.tsx b/src/features/planner-chat/plannerChat.tsx index 0d915bb..b05ed4a 100644 --- a/src/features/planner-chat/plannerChat.tsx +++ b/src/features/planner-chat/plannerChat.tsx @@ -185,6 +185,7 @@ export function PlannerChat({ onClose, onNotice, onTodosSaved }: PlannerChatProp } setIsBusy(true); + let shouldCloseAfterSave = false; try { const result = await savePlannerTodos({ todos: generatedPlan.todos, @@ -228,11 +229,15 @@ export function PlannerChat({ onClose, onNotice, onTodosSaved }: PlannerChatProp onNotice( `${savedTodoItems.length}개의 오늘 할 일과 ${result.calendar_events.length}개의 일정이 저장됐어요.`, ); + shouldCloseAfterSave = true; } catch (error) { onNotice(`플랜 저장 실패: ${error instanceof Error ? error.message : "원인 미상"}`); } finally { setIsBusy(false); } + if (shouldCloseAfterSave) { + onClose(); + } } return (