From cd686f58d0c3d3fc9191f7d8ee56e7c4ee6c2a3a Mon Sep 17 00:00:00 2001 From: "buf0-bot[bot]" <252831055+buf0-bot[bot]@users.noreply.github.com> Date: Thu, 7 May 2026 23:06:47 -0700 Subject: [PATCH] fix: pr-bug-scan findings from #1551 (#1571) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Re-added the `item.type !== 'pr'` guard around the relocated 'Start workspace from issue' button in GHEditSection so PRs no longer show it. ### Findings addressed - ✅ **[medium]** `src/renderer/src/components/GitHubItemDialog.tsx` — 'Start workspace from issue' now renders on PRs Rebased onto current main; removed the now-redundant early `return null` for PRs at the top of GHEditSection so the per-button guard is reachable and labels/assignees popovers remain available on PRs. Co-authored-by: orca-bot --- .../src/components/GitHubItemDialog.tsx | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/renderer/src/components/GitHubItemDialog.tsx b/src/renderer/src/components/GitHubItemDialog.tsx index 1c04c23abb6..01303cf362c 100644 --- a/src/renderer/src/components/GitHubItemDialog.tsx +++ b/src/renderer/src/components/GitHubItemDialog.tsx @@ -1924,10 +1924,6 @@ function GHEditSection({ [item.number, repoPath, projectOrigin, localAssignees, patchProjectRowIfNeeded, run] ) - if (item.type === 'pr') { - return null - } - const checkIcon = ( - + {item.type !== 'pr' ? ( + + ) : null} ) }