Skip to content

fix: query_selector compact 출력으로 인한 E2E measure 실패 수정#116

Merged
ohah merged 1 commit intomainfrom
fix/query-selector-json-response
Mar 18, 2026
Merged

fix: query_selector compact 출력으로 인한 E2E measure 실패 수정#116
ohah merged 1 commit intomainfrom
fix/query-selector-json-response

Conversation

@ohah
Copy link
Copy Markdown
Owner

@ohah ohah commented Mar 18, 2026

Summary

fa74efa (compact 텍스트 출력) 이후 CI E2E가 100% 실패한 근본 원인 수정.

원인

query_selector MCP 도구가 JSON → compact 텍스트로 변경되면서, app-client.querySelector()가 응답을 JSON.parse하지 못하고 문자열로 반환. 결과적으로 el.measure가 항상 undefined"has no measure data" 에러.

수정

  • query_selector/query_selector_allformat 파라미터 추가 (compact | json)
  • compact (기본값): AI 클라이언트용 한 줄 텍스트 (기존 동작 유지)
  • json: app-client/E2E runner용 raw JSON (measure 데이터 포함)
  • app-client.querySelector()format: 'json'으로 호출하도록 변경

Test plan

  • bun run build 성공
  • bun run test:unit 528 pass, 0 fail
  • oxfmt --check 통과
  • CI E2E iOS/Android 통과 확인

🤖 Generated with Claude Code

query_selector/query_selector_all에 format 파라미터 추가 (compact|json).
- compact (기본값): AI 클라이언트용 한 줄 텍스트 (토큰 절약)
- json: app-client/E2E runner용 raw JSON (measure 데이터 포함)

app-client.querySelector()가 format:'json'으로 호출하도록 변경.
이전에 compact 텍스트가 반환되면서 JSON.parse 실패 → 문자열 반환 →
el.measure가 항상 undefined → "has no measure data" 에러가 발생했음.

이 버그는 fa74efa (compact 텍스트 출력) 커밋 이후 CI E2E가 100% 실패한 근본 원인.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ohah ohah merged commit 7212603 into main Mar 18, 2026
6 of 8 checks 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.

1 participant