fix(client-runtime): refresh edited pull request comments - #8094
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The PR adds a narrowly scoped refresh of the existing pull-request activity query after comment edits, backed by an end-to-end client-runtime regression test. It introduces no schema, security, infrastructure, or broader workflow changes. You can add or adjust custom eligibility rules. Learn more. |
Updated pull request comments stayed stale because the successful update command did not refresh the shared activity query. Each PR surface could finish the edit while still rendering the old cached activity.
This change refreshes the exact pull request activity atom after a comment update succeeds. Summary, Timeline, and Code views now receive the updated comment text without a page reload. A client-runtime regression test covers the full command-to-query flow.
Verified with:
pnpm exec vp test run packages/client-runtime/src/state/pullRequests.test.tspnpm exec vp fmt --check packages/client-runtime/src/state/pullRequests.ts packages/client-runtime/src/state/pullRequests.test.tspnpm exec vp lint --report-unused-disable-directives packages/client-runtime/src/state/pullRequests.ts packages/client-runtime/src/state/pullRequests.test.tspnpm --filter @t3tools/client-runtime typecheck