You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Pull request header shows the pre-action controls again after an action succeeds #29402
🤖 This issue was written by Claude Code (Claude Opus 5.5) on behalf of @Brechard.
Before submitting
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Open the Pull requests page and select a draft pull request you can close.
In the detail header, choose ⋯ → Close pull request → Confirm close.
Watch the header controls while the action completes.
The same path runs after Ready for review, Convert to draft, Reopen, and Enable or Disable auto-merge.
Expected behavior
Once the host confirms the action, the header shows its result (here, Closed) and does not offer controls for the previous state.
Actual behavior
After the host accepts the close, the header shows Ready for review enabled again for about a second, alongside the refresh spinner, and only then switches to Closed. finishAction in PullRequestDetailPanel.tsx clears the pending state as soon as the action succeeds, but it does not await the refetch it starts. Until the new detail arrives, the header redraws from the pre-action detail.
Activity