Conversation
📝 WalkthroughWalkthroughModified Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/services/agents/weekly_coach_agent.py`:
- Around line 203-208: The dedupe logic treats missing IDs ("unknown") as
identical, causing later unique drills to be marked reused; update the block
that builds fresh/reused/final_drills so that any drill with id == "unknown" is
never considered in reused and is not added to used_drill_ids — e.g., compute
fresh = [d for d in drills_for_day if d["id"] not in used_drill_ids or d["id"]
== "unknown"], reused = [d for d in drills_for_day if d["id"] in used_drill_ids
and d["id"] != "unknown"], set day_drills[day_key] = fresh + reused as before,
and call used_drill_ids.update(...) only with real ids (exclude "unknown");
apply these changes around the variables used_drill_ids, drills_for_day,
day_drills, and final_drills in weekly_coach_agent.py.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: c34d03e9-ce85-4400-ad46-33da625715bd
📒 Files selected for processing (1)
src/services/agents/weekly_coach_agent.py
어떤 변경사항인가요?
Weekly Coach Agent의
retrieve_drills()에서 day별 독립 쿼리로 인한 cross-day 드릴 중복 문제를 해결합니다.used_drill_idsset으로 이미 배치된 드릴을 추적하고 fresh 드릴을 우선 배치하여 주간 플랜의 드릴 다양성을 높입니다.작업 상세 내용
retrieve_drills()에used_drill_ids: set[str]추적 set 추가sorted(week_plan.keys(), key=int)로 변경하여 day 1부터 드릴 선점체크리스트
관련 이슈
리뷰 포인트
n_results=10)참고사항 및 스크린샷(선택)
src/services/agents/weekly_coach_agent.py(retrieve_drills()함수만 변경)chroma_db.py), 스키마(weekly_schema.py), LLM 프롬프트 변경 없음Summary by CodeRabbit
Bug Fixes
Improvements