From 6667a5c75273b6bd08a21ead7134b40f88506f92 Mon Sep 17 00:00:00 2001 From: Claude-51124 Date: Mon, 17 Nov 2025 00:28:12 +0900 Subject: [PATCH] docs: note duplicate-prevention logic for calendar events --- troubleshooting/251114_gmail_calendar_scope_reconnect_guide.md | 1 + 1 file changed, 1 insertion(+) diff --git a/troubleshooting/251114_gmail_calendar_scope_reconnect_guide.md b/troubleshooting/251114_gmail_calendar_scope_reconnect_guide.md index 69891b7..88e2e95 100644 --- a/troubleshooting/251114_gmail_calendar_scope_reconnect_guide.md +++ b/troubleshooting/251114_gmail_calendar_scope_reconnect_guide.md @@ -203,6 +203,7 @@ target_date = datetime(year, month, day, tzinfo=ZoneInfo("Asia/Seoul")) - 조치: `results[0]`에서 `content`가 없으면 `message`를 대신 사용하도록 분기 수정 → 캘린더 등록 성공 메시지가 정상 노출됨 - 다중 날짜(예: "2025-11-07, 2025-11-14, 2025-11-21...")가 포함된 LLM 응답에서 `date` 필드 전체를 split('-') 하면서 time_range 파싱이 실패하던 문제 → `parse_time_range()`에서 첫 번째 `YYYY-MM-DD`만 정규식으로 추출해 사용하도록 수정 - LLM이 `날짜: 2025-11-07, 2025-11-14, 2025-11-21, 2025-11-28`처럼 여러 날짜를 내려줄 때, `calendar_handler.handle_calendar_create()`가 모든 ISO 날짜를 리스트로 추출해 각각 `create_event`를 호출하도록 개선 → 7/14/21/28 네 건이 개별 일정으로 생성됨 +- 생성 단계에서 같은 날짜·시각에 이미 등록된 로컬 로그가 있으면 새 이벤트를 만들지 않고 "이미 같은 시간대에 등록된 일정이 있습니다"라고 안내하도록 중복 방지 레이어 추가 ### 남은 문제 - 동일한 일정 문구를 반복 입력하면 매번 새로운 이벤트가 생성됨 → 일정 중복 체크 로직 필요