Skip to content

fix(planner): 플래너 채팅 job 폴링 처리 추가 - #170

Merged
bigmooon merged 1 commit into
mainfrom
fix/planner-poll
Jun 29, 2026
Merged

bigmooon merged 1 commit into
mainfrom
fix/planner-poll

Conversation

@areum117

Copy link
Copy Markdown
Collaborator

Summary

  • 백엔드가 장기 AI 요청을 비동기 job 방식으로 바꾸면서, 프론트도 한 번의 POST 응답만 기다리는 구조에서 job polling 구조로 맞췄습니다. 화면 컴포넌트는 유지하고 API 계층에서 변경을 흡수했습니다.

Changes

  • 플래너 chat API가 pending + job_id 응답을 받으면 /todos/chat/{jobId}/를 폴링하도록 변경했습니다.
  • 최종 done 응답이 오면 기존처럼 follow_up, out_of_scope, candidates 결과를 반환합니다.
  • 폴링 중 error 상태나 timeout이 발생하면 사용자에게 실패 메시지를 보여줄 수 있도록 예외를 던집니다.
  • 프론트 API flow 문서를 갱신했습니다.

Checklist

  • Frontend module/workspace boundaries are respected (apps/, packages/)
  • No unrelated files are included
  • UI/UX, props, or state behavior changes are documented
  • Assets (Godot exports, images) are committed or not needed
  • Commit messages follow Conventional Commits

Test

  • npm run ci-check
  • npm run check
  • Manual check:

Notes

@bigmooon
bigmooon merged commit 22133cd into main Jun 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants