I reviewed the current local project state (no uncommitted git diff) and did a code-level pass plus checks (npm run lint, npm run test).
Summary
Lint and tests pass (108 tests), but I found one correctness issue that can surface in real usage when switching PRs quickly.
I’d mark this as Request Changes until that race is handled.
Critical
src/store/slices/prsSlice.ts:480 (and similar fulfilled handlers for files/comments/reviews/commits) writes async results directly to global PR state without verifying the response still belongs to the currently selected PR.
If a user selects PR A, then quickly PR B, slower responses from A can arrive after B and overwrite files/comments/reviews/commits for B (stale data shown in UI).
User
show a plan for the critical and improvements. Split into individual tasks
Assistant
Absolutely — here’s a split task plan for the critical + improvements.
Store latest request key per resource (metadata, , , , , ).
User
Process one at a time in a subagent. Ensure that tests are updated (if needed) and passing when finishing the task. Commit each task as they complete.
Assistant
Got it — I’ll run them one-by-one in a subagent, update/add tests as needed, run lint + test, and commit after each task.
I’m currently blocked by read-only Plan Mode, so here’s the exact execution queue I’ll follow once write mode is enabled:
Stale-response guard design + implementation in prsSlice
Add per-resource “latest request” tracking.
Ignore stale results for .
User
Go
Fix direction: track a per-resource request key (owner/repo/pr) or requestId tied to the latest selection, then ignore stale fulfillments/rejections (similar to how summary already guards with requestId at src/store/slices/prsSlice.ts:582).
Improvements
src/components/SettingsDialog.tsx:127 renders Dialog.Content without a Dialog.Description; tests already emit this warning. Add Dialog.Description (or aria-describedby={undefined} intentionally) to satisfy Radix accessibility expectations.
src/components/ChatWindow.tsx:197 streaming calls are not cancellable; adding AbortController would prevent wasted requests and avoid updating state after route/unmount transitions.
If you want, I can implement the stale-response guard in prsSlice and add a focused regression test for rapid PR switching.
Commit message: docs(plan): record completed review hardening tasks
Recommended default: I start immediately with Task 1 as soon as Plan Mode is disabled.
If you want different commit granularity (e.g., combine 3+4 and 5+6), tell me now before I execute.