8000 fix: CLI의 큰 JSON 출력 잘림 방지 by hmmhmmhm · Pull Request #227 · hmmhmmhm/daiso-mcp · GitHub
[go: up one dir, main page]

Skip to content

fix: CLI의 큰 JSON 출력 잘림 방지 - #227

Merged
hmmhmmhm merged 1 commit into
mainfrom
fix/cli-output-drain
Oct 5, 2026
Merged

hmmhmmhm merged 1 commit into
mainfrom
fix/cli-output-drain

Conversation

@hmmhmmhm
@hmmhmmhm hmmhmmhm commented Oct 5, 2026
Copy link
Copy Markdown
Owner

올리브영처럼 큰 JSON을 반환하는 CLI 조회를 파이프로 읽으면 강제 프로세스 종료가 stdout 배출보다 먼저 실행되어 JSON이 잘렸습니다. 운영 공개 패키지와 256KiB 자식 프로세스에서 재현했습니다. npm bin 및 직접 실행 CLI가 종료 코드만 설정해 출력을 모두 전달한 후 자연스럽게 종료하도록 수정합니다.

검증: 실제 npm·직접 실행 소스의 256KiB JSON 파이프 검사와 비정상 종료 코드 보존, 전체 2,634개 테스트와 커버리지 100%, npm run check 및 build 통과. 독립 리뷰 완료.

@hmmhmmhm
hmmhmmhm merged commit 7e500f8 into main Oct 5, 2026
6 checks passed
@hmmhmmhm
hmmhmmhm deleted the fix/cli-output-drain branch October 5, 2026 09:52
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

0