Skip to content

fix(v0.4.4): output capture + truncated JSON repair - #192

Merged
ajianaz merged 1 commit into
developfrom
fix/v0.4.4-output-and-json
Jun 7, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/v0.4.4-output-and-json

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

Changes

#181 — Output capture

  • Spinner (indicatif::ProgressBar) in llm.rs and scanner.rs now auto-hides when stderr is not a TTY (piped/redirected), preventing ANSI pollution
  • New --output-file <PATH> flag writes formatted review output to a file instead of stdout

#186 — Truncated JSON repair

  • New repair_truncated_json() function tracks unclosed strings/brackets and closes them before parse
  • Both parse_review_response() and parse_scan_response() attempt truncated repair on EOF errors
  • Preserves partial findings instead of failing completely

Testing

  • 74/74 tests passed
  • cargo clippy clean
  • cargo fmt --check clean

Do NOT release yet

  • This PR is ready for review but should NOT be tagged/released until instructed

- Spinner auto-hides when stderr is not a TTY (#181)
- Add --output-file flag for guaranteed output capture (#181)
- Repair truncated LLM JSON by closing unclosed brackets/strings (#186)
- 74 tests passed, clippy clean, fmt clean
@ajianaz
ajianaz merged commit 0576c3a into develop Jun 7, 2026
11 checks passed
@ajianaz
ajianaz deleted the fix/v0.4.4-output-and-json branch June 7, 2026 00:32
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