<command-message>resolve-pr-reviews</command-message>…
- User
resolve-pr-reviews /resolve-pr-reviews
- User
Resolve PR Review Comments
Resolve all open review comments on the current PR from any automated reviewer (CodeRabbit, GitHub Copilot, etc.) or human reviewers.
Workflow
1. Identify the PR
bashPR_NUMBER=$(gh pr view --json number --jq '.number')If no PR exists for the current branch, stop and inform the user.
2. Fetch all unresolved review threads
Use the GraphQL
reviewThreadsquery to get threads withisResolvedstatus:bashREPO_OWNER=$(gh repo view --json owner --jq '.owner.login') REPO_NAME=$(gh repo view --json name --jq '.name') gh api graphql -f query=" { repository(owner: \"$REPO_OWNER\", name: \"$REPO_NAME\") { pullRequest(number: $PR_NUMBER) { reviewThreads(first: 100) { nodes { id isResolved comments(first: 10) { nodes { id author { login } body path line createdAt } } } } } } }"Filter to only unresolved threads. If none, report "No unresolved review threads" and stop.
3. Triage each comment
For each unresolved thread, read the comment and the referenced code. Categorize as:
- Valid fix needed — the comment identifies a real bug, security issue, or meaningful improvement
- Already addressed — the issue was fixed in a later commit on this branch
- Not applicable — the suggestion doesn't apply (explain why)
4. Implement fixes
For all "valid fix needed" comments:
- Read the referenced file and understand the context
- Implement the fix
- Track which thread the fix addresses
Do NOT:
- Make unrelated changes or refactors
- Add features beyond what the comment requests
- Increase timeouts or add retries as a first approach — fix root causes
Assistant
Found 3 unresolved threads from CodeRabbit. Let me read the referenced files to triage each comment.
Assistant
Let me check the CONTEXT.md and REQUIREMENTS.md for the referenced SDK contract requirements.
Assistant
Now let me read the broader context of the 19.1-02-PLAN.md to understand the design intent around fetch vs axios.
Assistant
Now let me read the relevant parts of 19.1-03-PLAN.md and 19.1-04-PLAN.md for context on the SDK config shape.
Assistant
Now let me check the CONTEXT.md for the SDK stateful contract and whether rootIpnsName/rootFolderKey are mentioned.
Assistant
Good, I have full context now. Let me triage the 3 threads:
- Thread 1 (19.1-02-PLAN.md:296) — Valid fix needed. The
customInstancemutator usesfetchbutclient: 'axios'is configured. The mutator should use the axios instance for consistency. - Thread 2 (19.1-04-PLAN.md:97) — Not applicable. Per CONTEXT.md line 49,
rootIpnsName/rootFolderKey/teeKeysare internal state the SDK discovers dynamically, not consumer config fields. - Thread 3 (19.1-06-PLAN.md:294) — Not applicable.
packages/cryptois already at v0.24.2 (coupled to root). Resetting to 0.1.0 would be a regression. Only the NEW packages start at 0.1.0.
Fixing thread 1:
- Thread 1 (19.1-02-PLAN.md:296) — Valid fix needed. The
Assistant
Let me re-read the exact content to match whitespace precisely.
Assistant
Now update the import line to include
AxiosRequestConfigandAxiosError.Assistant
Now update the note in 19.1-03-PLAN.md that references the "fetch-based mutator".
Assistant
Now also update the acceptance criteria and related references in 19.1-02-PLAN.md that mention the fetch-based approach.
Assistant
Good, no other references. Now let me verify the fix looks correct.
Assistant
Good. Now let me also update the
instance.tsexport line in the barrel file to include the new ErrorType and BodyType.Assistant
Now let me commit and push, then reply to and resolve all threads.
Assistant
Now reply to and resolve all 3 threads.
Assistant
All replies posted. Now resolve all 3 threads.
Assistant
All done. Here's the summary:
# File Comment Action Status 1 19.1-02-PLAN.md:296fetch-based mutator doesn't match client: 'axios'Fixed — replaced with AxiosRequestConfig-based mutator, addedErrorType/BodyTypeexportsResolved 2 19.1-04-PLAN.md:97CipherBoxClientConfigmissingrootIpnsName/rootFolderKey/teeKeysNot applicable — those are internal SDK state discovered dynamically, not consumer config Resolved 3 19.1-06-PLAN.md:294packages/cryptoshould be independent in Release PleaseNot applicable — crypto is at v0.24.2 (coupled to root since earlier phase); resetting to 0.1.0 would be a regression Resolved 3 threads resolved (1 fix committed in
ac8a2854b, 2 dismissed with explanation).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.