fix(cli): stop claiming logs --follow implies JSONL - #3372
Conversation
Carried from #3322 onto current dev. Independent of the other carried fixes, so it ships as its own PR rather than a stack layer. Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
|
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 (5)
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe change corrects ChangesLogs follow-mode contract
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change aligns logs follow-mode messaging, validation, and reference material with the existing human-readable default while preserving explicit JSONL selection. Regression coverage addresses the invalid JSON combination and bare follow output, with no current merge-blocking risk identified. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The changes satisfy issue Full details: Out of Scope Changes checkExplanation The changes remain within issue 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.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
리뷰 · 우선순위 71 / 80이 PR은 고치는 내용은 세 군데를 한 계약으로 맞추는 것입니다. (1) 원본은 @luvs01 의 #3322입니다. 이 PR은 그 수정을 현재 한 가지 알아 둘 점: 에러 문구에 “streaming JSONL”이라는 말이 남아 있습니다. 실제 follow는 WebSocket 스트림이 아니라 1초 폴링입니다. capabilities 요약은 “Poll”로 고쳤는데, 에러 문구의 streaming은 출력 형식(JSONL)을 가리키는 말로 읽을 수 있어 큰 거짓말은 아닙니다. 다만 나중에 문장을 더 다듬을 여지는 있습니다.
원본 #3322 - 머지 후 자동 close 또는 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
Summary
Carried from #3322 by @luvs01 onto current
dev, with the author'sCo-authored-bytrailer on the commit.ocx logs --followdocumented and errored as though it implied JSONL output, which is not what the code does: bare--followselects human formatting unless--jsonlis given. The error message, the capability metadata, and the generated skill reference all now say the same thing the output branch actually does —--follow cannot be combined with --json; use --jsonl for streaming JSONL.The PR still shows
CHANGES_REQUESTED, but that review is stale: its exact requested message and its requested tests are both present at the head this carries. Re-review rather than another code change is what it was waiting on.Closes #3322
Verification
Both assertions are RED against current
dev: the error text atsrc/cli/observe.tsand the capability declaration atsrc/cli/capabilities.ts. A third test independently locks the bare---followhuman output so the contract cannot drift back.Checklist
skills/ocx/references/01_management_surface.mdregenerates from the capability registry and is included.)Co-authored-by: luvs01 27862058+luvs01@users.noreply.github.com
Summary by CodeRabbit
Bug Fixes
ocx logs --followpolls for new rows and displays human-readable output by default.--jsonl; incompatible--follow --jsonusage provides clearer guidance.Documentation
Tests