fix: query_selector compact 출력으로 인한 E2E measure 실패 수정#116
Merged
Conversation
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>
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
fa74efa(compact 텍스트 출력) 이후 CI E2E가 100% 실패한 근본 원인 수정.원인
query_selectorMCP 도구가 JSON → compact 텍스트로 변경되면서,app-client.querySelector()가 응답을JSON.parse하지 못하고 문자열로 반환. 결과적으로el.measure가 항상undefined→"has no measure data"에러.수정
query_selector/query_selector_all에format파라미터 추가 (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:unit528 pass, 0 failoxfmt --check통과🤖 Generated with Claude Code