π¨ Palette: Route logs to stderr, keeping data on stdout#175
Conversation
Co-authored-by: ffalcinelli <1167082+ffalcinelli@users.noreply.github.com>
|
π Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a π emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Codecov Reportβ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #175 +/- ##
==========================================
+ Coverage 96.10% 96.13% +0.03%
==========================================
Files 29 29
Lines 2898 2926 +28
==========================================
+ Hits 2785 2813 +28
Misses 113 113 β View full report in Codecov by Harness. π New features to boost your workflow:
|
π‘ What: Changed all instances of UI logs/prompts across the project to output to
stderr(usingeprintln!instead ofprintln!), specifically targeting standard logs (info, error, success, warn) insrc/utils/ui.rsand across all action scripts.Crucially, the diff outputs inside
planlogic (likeprint_diff) remain onstdout.π― Why: Standard Unix philosophy dictates that informational/interactive logs should go to
stderr, while the actual output payload goes tostdout. This allows users to safely pipe kaji commands (e.g.kaji plan > changes.patch) without UI loading indicators, checkmarks, or warnings polluting the redirected file.πΈ Before/After:
Before:
After:
βΏ Ergonomics: Vastly improves scripting, composition, and log redirection.
PR created automatically by Jules for task 5503033966193379511 started by @ffalcinelli