feat(observability): stdout trace + 단기/장기 리포트 분리 프롬프트 강화 - #101
Merged
Conversation
- build_report_list_response에서 워치리스트 종목을 함께 조회해 리포트가 없는 종목도 목록에 포함 (hasReport=False 마커) - ReportSummaryContract에 hasReport 옵션 필드 추가 - /report 페이지에서 미생성 종목은 "리포트 생성" 버튼 표시, 클릭 시 /report/[corpCode]로 이동 (캐시미스 UI + 재분석 버튼 활용) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pi SDK turn_end 이벤트의 message 필드는 {role, content, ...} 메시지 객체이며
문자열이 아니다. finalText = candidate.message || currentTurnText 패턴으로
객체가 finalText에 할당되면 finalText.trim()에서 TypeError가 발생하고
결국 재분석 버튼 클릭 시 502가 반환된다.
텍스트는 message_update 이벤트로 누적된 currentTurnText를 직접 사용한다.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Topbar 'CTA' 버튼이 onCta 미연결로 동작하지 않던 버그. watchlist의 AddStockModal을 재사용해 모달을 열고 종목을 추가할 수 있게 함.
|
PR 크기 경고: 변경 파일 5개, LOC 458줄. 소프트 기준(20파일/400 LOC) 초과. 분할을 고려해 주세요. (블록 아님 — docs/rules/version-control.md §5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
1. stdout trace 추가: 리포트/QA 진행 중 backend/agent 터미널에 trace 라인 출력. `GONGSIRI_TRACE_STDOUT=false` 로 토글.
2. 단기/장기 리포트 분리 버그 수정 (프롬프트 레벨):
shortTermMarkdown과longTermMarkdown에 동일 텍스트가 박혀 옴SKILL.md의 두 필드 설명이 미흡 → Solar가 동일 내용 생성3개월, 위험 시그널) vs 장기(612개월, 펀더멘털) 관점 명시 + 중복 금지 CRITICAL 규칙Changes
backend/agent_client.py,backend/routes/{report,qa}_routes.py(+28)agent/src/pi/piSession.ts(+30) — turn/tool 이벤트 traceagent/.pi/skills/gongsiri-report/SKILL.md(+4) — 분리 규칙 강화Test plan
/report/[corpCode]재분석 → backend/agent stdout에 trace 라인 보임🤖 Generated with Claude Code