Repository navigation
Description
A rejected request can permanently disable Refresh or Start task until the view remounts. One project's failed PR request also hides successful results from other projects, and the optional PR meter can prevent an otherwise successful Planboard issue load.
Reproduced
Mounted real components with deferred promises:
- PrListView: one listPrs rejection leaves “Loading pull requests”, Refresh disabled, no result rows and no visible error, even though another project's request succeeded.
- PlanboardView: listIssues succeeds but optional listPrs rejects; no issue cards appear and Refresh stays disabled.
- PlanboardView: onStartTask rejects; Start controls stay disabled with no failure note.
All three emit unhandled rejections. Runnable assertion:node --import=./test/support/disable-grok-mcp.mjs --import=./test/support/render.mjs --experimental-strip-types docs/issue-drafts/2026-09-08-view-actions-evidence.mjs.
Cause
PrListView.tsx and PlanboardView.tsx await Promise.all without catch/finally. Planboard startTask similarly never clears starting after a rejection. PR retry/checkout should be checked under the same rejection contract.
This is specifically the rejected transport/callback boundary. Ordinary gh authentication, missing binary and CLI failures are already normalized to {ok:false,reason} by worktrees.js; those alone do not reproduce it. wireClient.ts rejects on request timeout/disconnection. useCoder.ts forwards list calls. App's issue-start callback also has awaited operations outside its catch.
Acceptance
- Catch rejected list and action callbacks, render a scoped error, and clear pending flags for the current request in finally.
- Keep successful per-project PR results visible when a sibling fails; support retry of the failed repository.
- Optional PR meter failure must not hide successfully fetched Planboard cards.
- Start failure restores usable controls and explains the failure. Do not automatically retry a potentially applied mutation after an ambiguous timeout.
- Preserve existing structured-error behavior and generation guards, including project changes during failures.
- Add focused rejection checks for initial load, refresh, retry and Start task.
Duplicate check
#427 proposes forge-outage caching, offline dispatch and replay queues. This is a concrete existing UI recovery defect and can be fixed independently without any offline cache or replay system; link it as a prerequisite. #928 is reconnect write coalescing; #929 is transcript resync. Neither clears these view request flags. The Planboard cross-project completion race is separate.
Parent audit #1130. Audited components match the current default branch blobs.
Activity
currentbits commentedon Sep 8, 2026
Landed from Solenta thread "Rejected PR and Planboard requests leave loading and Start t". Closed on merge.