fix: hint when git diff truncated + --no-compact passthrough (#427)#564
Merged
pszymkowiak merged 1 commit intodevelopfrom Mar 17, 2026
Merged
fix: hint when git diff truncated + --no-compact passthrough (#427)#564pszymkowiak merged 1 commit intodevelopfrom
pszymkowiak merged 1 commit intodevelopfrom
Conversation
…gh (#427) When compact_diff truncates output, append a hint line so Claude knows how to get the full diff: [full diff: rtk git diff --no-compact] Also fix --no-compact flag being passed to git (causing usage error) and remove decorative emoji from compact_diff output. Signed-off-by: Patrick szymkowiak <patrick.szymkowiak@innovtech.eu>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
compact_diff()truncates output (>30 lines/hunk or >500 lines total), append a hint:[full diff: rtk git diff --no-compact]--no-compactflag being passed through to git (causedusage: git differror)📄from compact diff outputBefore
Claude doesn't know how to get the full diff.
After
Claude sees the hint and can run
rtk git diff --no-compactto get the full output.Tested locally
rtk git diff --no-compact: full raw diff, flag stripped before passing to git ✅Fixes #427