Skip to content

fix: hint when git diff truncated + --no-compact passthrough (#427)#564

Merged
pszymkowiak merged 1 commit intodevelopfrom
fix/diff-hint-no-compact
Mar 17, 2026
Merged

fix: hint when git diff truncated + --no-compact passthrough (#427)#564
pszymkowiak merged 1 commit intodevelopfrom
fix/diff-hint-no-compact

Conversation

@pszymkowiak
Copy link
Collaborator

Summary

  • When compact_diff() truncates output (>30 lines/hunk or >500 lines total), append a hint: [full diff: rtk git diff --no-compact]
  • Fix --no-compact flag being passed through to git (caused usage: git diff error)
  • Remove decorative emoji 📄 from compact diff output

Before

  ... (more changes truncated)

Claude doesn't know how to get the full diff.

After

  ... (more changes truncated)
[full diff: rtk git diff --no-compact]

Claude sees the hint and can run rtk git diff --no-compact to get the full output.

Tested locally

  • Large diff (truncated): hint appears at the end ✅
  • Small diff (not truncated): no hint ✅
  • rtk git diff --no-compact: full raw diff, flag stripped before passing to git ✅
  • 900 tests pass ✅

Fixes #427

…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>
@pszymkowiak pszymkowiak requested a review from aeppling March 13, 2026 10:53
@pszymkowiak pszymkowiak merged commit f2a7306 into develop Mar 17, 2026
2 of 3 checks passed
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