Repository navigation
fix(cli): preserve JSON while escaping human output - #6459
Conversation
Carry luvs01#697 onto current dev, preserving its implementation and regression coverage. Co-authored-by: Epinephrine <luvs01@hanmail.net> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughHuman-readable CLI output now escapes terminal control characters while JSON output retains original values. Exported documents are passed as individual lines to preserve multiline formatting. ChangesCLI output behavior
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The CLI changes preserve JSON values while escaping human-readable output and retaining exported document layout. No identified issue remains that should prevent merging after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to Human-readable output now escapes terminal controls while JSON values remain unchanged. The remaining terminal-output finding predates this change, and the inspected paths do not show increased exposure. Its practical impact depends on how a terminal displays structured output. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 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 2 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 |
|
✅ Deterministic PR hygiene checks passed. |
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. |
) Suggestion rationale could emit terminal controls in human-readable output. Escape shared human lines while preserving JSON values and multiline exports. Add public guidance alongside the contributor regression tests. Carries lidge-jun#6459 by @luvs01. Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com>
Summary
devate0af52c8a2701dccd81fa5e672c92744e59d2e29.Verification
Linux / Bun 1.4.0, exact tree
d2164af2e7131154328e600b0d947cde97b5fcbb:bun test tests/cli/cli-headless-parity.test.ts tests/cli/cli-export-command.test.ts: 126 pass, 0 fail, 513 assertions.bun node_modules/typescript/bin/tsc --noEmit,bun scripts/structure-ssot.ts,bun scripts/privacy-scan.ts,bun scripts/file-size-ratchet.ts, andgit diff --cached --check: pass.bun scripts/test.ts --changed=e0af52c8a2701dccd81fa5e672c92744e59d2e29: 1520 pass, 1 skip, 35 fail across 87 files. Coordinator/client failures report the sandbox's untrusted/tmpownership; Claude integration assertions also failed. This is not a green broad run, and the complete failure set has not been independently cleared.db774c7da4e45c26555c141b7260ef225aca08c0have passed: Cross-platform CI, including itsciaggregate, and Enforce PR target branch, attempt 2. The latest check inventory is 21 successful and 9 scope-skipped jobs; skipped platform lanes are not claimed as tested.Checklist
Co-authored-by: Epinephrine luvs01@hanmail.net
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Summary by CodeRabbit
Maintainer integration evidence
Owner lidge-jun elects maintainer integration into dev under the recorded repository policy and current user authorization. The five changed file blobs match the independently reviewed recovery carry. No unresolved review threads or maintainer change requests were found. Exact-head pull_request CI run 37018199273, attempt 1, completed successfully at
db774c7da4e45c26555c141b7260ef225aca08c0; all requested jobs passed, platform-unrequested jobs remain skipped rather than claimed executed. CLI human-output escaping preserves JSON behavior, with focused recovery coverage. This decision is maintainer integration, not self-approval.