[PR #547] fix: show working log output in production mode when --show-working-log flag is provided #552

Closed
opened 2026-03-02 04:13:57 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/git-ai-project/git-ai/pull/547

State: closed
Merged: Yes


Summary

git-ai checkpoint --show-working-log produced no output in production mode because all output in the show_working_log block used debug_log(), which only prints when GIT_AI_DEBUG=1 is set. Replaced with eprintln!() so the working log is always displayed when the flag is explicitly provided.

Fixes #96

Review & Testing Checklist for Human

  • Note that debug_log prefixes output with a colored [git-ai] tag — the new eprintln! calls do not. Confirm this is acceptable or if a prefix should be added for consistency.
  • Test git-ai checkpoint --show-working-log in a repo with existing checkpoints (without GIT_AI_DEBUG=1) and verify output appears on stderr.

Notes

  • All existing tests pass show_working_log: false, so this code path has no automated test coverage.
  • Link to Devin run
  • Requested by: @svarlamov

Open with Devin
**Original Pull Request:** https://github.com/git-ai-project/git-ai/pull/547 **State:** closed **Merged:** Yes --- ## Summary `git-ai checkpoint --show-working-log` produced no output in production mode because all output in the `show_working_log` block used `debug_log()`, which only prints when `GIT_AI_DEBUG=1` is set. Replaced with `eprintln!()` so the working log is always displayed when the flag is explicitly provided. Fixes #96 ## Review & Testing Checklist for Human - [ ] Note that `debug_log` prefixes output with a colored `[git-ai]` tag — the new `eprintln!` calls do not. Confirm this is acceptable or if a prefix should be added for consistency. - [ ] Test `git-ai checkpoint --show-working-log` in a repo with existing checkpoints (without `GIT_AI_DEBUG=1`) and verify output appears on stderr. ### Notes - All existing tests pass `show_working_log: false`, so this code path has no automated test coverage. - [Link to Devin run](https://app.devin.ai/sessions/0433482eb1394f44938dee868f7c2c56) - Requested by: @svarlamov <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/git-ai-project/git-ai/pull/547" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end -->
kerem 2026-03-02 04:13:57 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#552
No description provided.