Skip to content

fix: pr-bug-scan findings from #1415 (re-applied on current main)#1516

Open
nwparker wants to merge 1 commit intomainfrom
reapply/pr-1464-on-main
Open

fix: pr-bug-scan findings from #1415 (re-applied on current main)#1516
nwparker wants to merge 1 commit intomainfrom
reapply/pr-1464-on-main

Conversation

@nwparker
Copy link
Copy Markdown
Contributor

@nwparker nwparker commented May 7, 2026

Re-applies the four ResourceUsageStatusSegment fixes from #1464 on top of current main.

#1464 was branched off the #1415 merge commit and was 62 commits behind by the time it landed for review. Its 233-file diff would have silently reverted #1451 (focus right pane after clicking an agent), which reworks navigateToTab to thread paneKey through and call activateTabAndFocusPane. This PR is built fresh on origin/main and only touches ResourceUsageStatusSegment.tsx.

Findings addressed (from #1415 / #1464)

  • [medium] Orphan kill race re-adds the killed row — await the kill before refreshSessions.
  • [medium] Duplicate sessions interval inside the open-gated effect — removed; the always-on poll below already covers it.
  • [medium] Kill-confirm Dialog mounted inside PopoverContent — hoisted to a sibling so its lifetime is independent of the popover.
  • [low] daemonUnreachable required memorySnapshotError !== null, so a sessions failure before the popover ever opened was silent — also treat snapshot === null + sessions error as unreachable.

Verification

Closes the intent of #1464; that PR is being closed with an audit-trail comment.

Re-applies the four ResourceUsageStatusSegment fixes from #1464 on top of
current main. Original PR was branched off the #1415 merge commit and
would have silently reverted #1451 (focus right pane after clicking an
agent), which reworks navigateToTab to thread paneKey through and call
activateTabAndFocusPane.

Findings:
- Orphan kill race re-adds the killed row (await kill before refresh).
- Duplicate sessions interval inside open-gated effect (removed).
- Kill-confirm Dialog mounted inside PopoverContent (hoisted to sibling).
- daemonUnreachable required at least one snapshot failure (also treat
  null snapshot + sessions error as unreachable).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant