Skip to content

Add --verbose flag#320

Merged
signadou merged 2 commits intomainfrom
add-verbose-flag-123125
Dec 31, 2025
Merged

Add --verbose flag#320
signadou merged 2 commits intomainfrom
add-verbose-flag-123125

Conversation

@signadou
Copy link
Copy Markdown
Member

@signadou signadou commented Dec 31, 2025

With this change, diffs and system prompt patching logs will only show when --verbose is specified, since most users' issues aren't related to patching.

Summary by CodeRabbit

  • New Features
    • Added a verbose debugging mode (-v/--verbose) that provides enhanced diagnostic output, detailed diffs, and richer logging across patch operations and system prompt processing.
    • Verbose mode also enables existing debug output automatically, giving full visibility into matches, character counts, captured variables, and content previews for easier troubleshooting.

✏️ Tip: You can customize this high-level summary in your review settings.

With this change, diffs and system prompt patching logs will only show when `--verbose` is specified, since most users' issues aren't related to patching.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Dec 31, 2025

📝 Walkthrough

Walkthrough

Adds a new CLI verbose mode (-v/--verbose) and corresponding utilities (enableVerbose, isVerbose, verbose). Startup enables verbose when the flag is present (falling back to debug). Patching modules and logging calls were updated to use the new verbose APIs; no core control-flow changes.

Changes

Cohort / File(s) Summary
Verbose Mode Utilities
src/utils.ts
Introduces isVerbose() state, enableVerbose() public API (which also enables debug), and verbose() logging function; preserves existing debug APIs.
CLI Integration
src/index.tsx
Adds -v/--verbose CLI flag; imports and invokes enableVerbose() when provided; startup prefers verbose over debug.
Patching Flow — Diff & Logging
src/patches/index.ts, src/patches/systemPrompts.ts, src/patches/...
Replaces isDebug/debug usages with isVerbose/verbose for diff output and informational logs across patching logic; no other behavioral changes.
Changelog / Manifest
CHANGELOG.md, package.json
Documents the new --verbose flag in changelog; no functional manifest changes detected.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 I found a flag, bold and bright,
I turned it on to share my light,
Logs chirp louder, hops anew,
Patches sparkle, view by view,
A verbose carrot — yes, that's true! 🥕

Pre-merge checks

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add --verbose flag' directly and clearly describes the primary change: introducing a new CLI flag for verbose mode. This matches the main implementation across all modified files.

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 95aa026 and f0b31b1.

📒 Files selected for processing (1)
  • CHANGELOG.md
✅ Files skipped from review due to trivial changes (1)
  • CHANGELOG.md

Comment @coderabbitai help to get the list of available commands and usage tips.

@signadou signadou merged commit ea96dd1 into main Dec 31, 2025
2 checks passed
@signadou signadou deleted the add-verbose-flag-123125 branch December 31, 2025 18:19
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.

2 participants