Fix npm bugs, add thread reply processing - #11
Merged
Conversation
rpr was feeding its own prior reviews back as "previous feedback", causing Claude to re-comment on its own concerns indefinitely instead of approving. Now tags all outgoing reviews with an invisible HTML marker (<!-- rpr -->) and filters them out when building context for subsequent runs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When rpr runs, it now checks its own previous review threads for human replies. If someone says "fixed", rpr fetches the current code at that location and asks Claude to verify the fix before replying and resolving. If someone provides a technical explanation, rpr acknowledges and resolves. Uses GraphQL to fetch thread IDs and resolve them. All rpr replies are tagged with the <!-- rpr --> marker so they're excluded from future context, preventing the re-comment loop. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
ModuleNotFoundErroron npm installs —from rpr import __version__fails when run via the Node shim; added_get_version()fallback that parses the sibling__init__.py<!-- rpr -->and filters them out on subsequent runs__init__.py,pyproject.toml, andpackage.jsonHow thread processing works
Test plan
npm install -g @dedev-llc/rpr && rpr <PR>— no moreModuleNotFoundErrorrprtwice on the same PR — second run should not re-comment on its own feedbackrpr <PR> --dry-run— thread processing should be skipped🤖 Generated with Claude Code