Skip to content

test(demo): QA step 4 견고화 및 multi-turn 확장 - #105

Merged
GoBeromsu merged 4 commits into
devfrom
feature/C-fix-demo-qa-multi-turn
May 28, 2026
Merged

test(demo): QA step 4 견고화 및 multi-turn 확장#105
GoBeromsu merged 4 commits into
devfrom
feature/C-fix-demo-qa-multi-turn

Conversation

@GoBeromsu

Copy link
Copy Markdown
Owner

Summary

  • /qa navigate 후 page.reload() + waitForLoadState('networkidle')로 DemoSessionProvider 재마운트 → qaStockOptions refetch 보장 (A)
  • waitForFunction으로 select options 채워질 때까지 명시적 대기 후 삼성전자 선택 (corp_code 기반, fallback 유지) (B/C)
  • input selector를 placeholder 텍스트 의존에서 페이지 마지막 text input 방식으로 교체 (D)
  • assistant 응답 도착 시그널을 body.innerText 길이 기반으로 강화 (90s timeout) (E)
  • 2턴째 질문("단기적으로 가장 위험한 신호는 뭔가요?") 추가 및 응답 대기 적용 (F/G)

Test plan

  • pnpm exec tsc --noEmit — TypeScript no errors
  • 실제 녹화: pnpm exec playwright test e2e/demo.spec.ts --headed 로 수동 트리거
  • step 1·2·3 변경 없음 확인

🤖 Generated with Claude Code

GoBeromsu and others added 2 commits May 28, 2026 22:08
Solar/Pi가 잡담("안녕" 등) 질문에 free-form 자연어를 반환할 때
parseModeResult가 JSON.parse 실패로 throw하던 문제를 수정한다.

docs/07: "QA 출력: JSON 강제 없음" 계약에 따라 qa mode에서
JSON 파싱 실패 시 원문을 answerMarkdown으로 wrapping해 반환한다.
report/checklist_explanation은 기존 엄격한 JSON 계약을 유지한다.

- agent/src/agentModeParser.ts: qa 조기 분기 + plain-text fallback
- agent/test/agentServiceModeContract.test.mjs: 테스트를 올바른 계약 반영으로 갱신

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- /qa navigate 후 page.reload()로 DemoSessionProvider 재마운트 → qaStockOptions refetch
- select options waitForFunction으로 명시적 대기 후 삼성전자 선택
- input selector를 placeholder 의존에서 마지막 text input 방식으로 교체
- assistant 응답 도착 시그널을 body.innerText 길이 기반으로 강화 (90s timeout)
- 2턴째 질문(단기 위험 신호) 추가 및 응답 대기 적용

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
GoBeromsu and others added 2 commits May 28, 2026 22:56
agent 계약(docs/07-pi-agent-contracts.md)은 conversationKey를
\"${user_id}::${corp_code}\" 형식의 string으로 정의하지만,
backend가 dict를 전달해 agentHttpCore.ts 검증에서 에러 발생.

qa_routes.py: conversation_key 생성을 f-string으로 변경
agent_qa_runtime.py: 파라미터 타입 annotation을 str | None으로 수정
test_qa_routes_prior_turns.py: 테스트 assertion을 string 형식에 맞게 갱신

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
type+delay로 React onChange 트리거, placeholder 정확매칭으로 locator 안정화
@GoBeromsu
GoBeromsu merged commit 2fd7d58 into dev May 28, 2026
7 of 8 checks passed
@GoBeromsu
GoBeromsu deleted the feature/C-fix-demo-qa-multi-turn branch May 28, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant