Skip to content

Fix/post grep rtk cleanups - #6

Merged
isink17 merged 5 commits into
feat/grep-agent-safe-jsonfrom
fix/post-grep-rtk-cleanups
May 28, 2026
Merged

Fix/post grep rtk cleanups#6
isink17 merged 5 commits into
feat/grep-agent-safe-jsonfrom
fix/post-grep-rtk-cleanups

Conversation

@isink17

@isink17 isink17 commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • cargo fmt --all && cargo clippy --all-targets && cargo test
  • Manual testing: rtk <command> output inspected

Important: All PRs must target the develop branch (not master).
See CONTRIBUTING.md for details.

Ivan Sinkovic and others added 4 commits May 7, 2026 18:43
… blocks + failed summaries, drops passing-test noise, handles ctest -V prefixes, and filters combined stdout/stderr.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces several improvements and bug fixes: it updates git diff argument normalization to treat arguments containing a dot as paths if they exist, fixes log truncation in log_cmd.rs to use character count instead of byte length to properly handle multi-byte characters, and introduces a new helper function has_rtk_disabled_prefix. Feedback on the changes suggests refactoring has_rtk_disabled_prefix to avoid redundancy as a simple alias and instead move the implementation directly into it.

Comment thread src/discover/registry.rs Outdated
Address remaining review feedback from the main MR:

- remove redundant has_rtk_disabled_prefix alias and call cmd_has_rtk_disabled_prefix directly
- fix grep JSON capped output to use a running current_count counter
- preserve non-empty JSON files/matches when capped results exist
- add/keep tests for capped grep JSON output

Also preserves already-merged cleanup fixes for git diff pathspec handling and Unicode-safe log truncation.
@isink17
isink17 merged commit 2445164 into feat/grep-agent-safe-json May 28, 2026
@isink17
isink17 deleted the fix/post-grep-rtk-cleanups branch May 31, 2026 06:21
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