fix(cli): stop claiming logs --follow implies JSONL - #3322
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe ChangesLogs follow contract
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The logs follow documentation and usage guidance now match the existing polling behavior: human-readable output remains the default and JSONL requires --jsonl. The covered flag contract introduces no remaining merge risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 4 files. (1 skipped: 1 unsupported.) Full details: Title checkExplanation The title clearly identifies the CLI documentation and capability correction for
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. |
리뷰 · 우선순위 54 / 80설명 이 PR은 고치는 범위는 작다. capability 한 줄, 생성 문서 한 줄, 그리고 summary가 그 문장인지 고정하는 회귀 테스트 하나다. 에이전트와 사람이
메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
Ingwannu
left a comment
There was a problem hiding this comment.
@lidge-jun @luvs01 현재 HEAD 5ffb26635은 capability 표와 생성 문서는 고쳤지만, 같은 CLI의 실제 사용자 오류 문구가 아직 반대 의미를 말하고 있습니다.
src/cli/observe.ts에는 지금도 다음 문장이 남아 있습니다:
--follow uses --jsonl, not --json
하지만 실제 동작은 --follow만 쓰면 사람이 읽는 출력이고, --jsonl을 함께 지정할 때만 JSONL입니다. 즉 이 PR의 제목인 “follow가 JSONL을 암시한다고 주장하지 않기”가 실제 오류 경로에서는 아직 완료되지 않았습니다.
해당 문구를 예를 들어 --follow cannot be combined with --json; use --jsonl for streaming JSONL처럼 실제 계약에 맞게 고치고, --follow --json 오류와 --follow 단독 human output 계약 테스트를 추가해 주세요. 그 뒤 exact-head CI가 green이면 승인 가능합니다.
5ffb266 to
483d2c8
Compare
483d2c8 to
db75b8d
Compare
|
@Ingwannu @lidge-jun — the requested follow-up from review
The PR is Ready with the 4/4 attestation bound to this head. The remaining Cross-platform CI run 33765100066 and React Doctor run 33765099727 are |
Summary
ocx logs --followcapability description with the CLI: follow mode polls for new rows and keeps human-readable output unless--jsonlis explicitly supplied.--follow --jsonusage error so it names the invalid combination without implying that follow mode enables JSONL.--follow --jsonrejection and bare--followhuman-readable output.Verification
db75b8df88104b8fa1cf7bac72807f41de61fe60is rebased directly onto currentdev1cc2ff22dfc42d2100e2330ff3d2ebe7dc2331db.bun test --isolate --timeout 60000 tests/cli-capabilities.test.ts tests/cli-usage-report.test.ts— 36 pass, 0 fail, 256 assertions on Bun 1.4.0.bun x tsc --noEmit— passed.bun run skill:surface:check— generated management reference is current.git diff --check origin/dev...HEAD— clean.Checklist
This changes capability metadata, its generated reference, the contradictory usage error, and focused regression coverage only; log streaming and authentication behavior are unchanged.
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit
Documentation
logs --followpolls for new rows.--jsonlmust be added explicitly to produce JSONL output.--followwith--jsonis invalid and that--jsonlis the streaming alternative.Bug Fixes
Tests