From 33a62cd3ef004ca8bf6acd42e2b3a9c02af83689 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Mon, 11 May 2026 23:47:08 -0700 Subject: [PATCH] Add reload button to gh auth error help After running `gh auth refresh` in a terminal, users had to manually reload Orca to pick up the new token state. Surface a one-click Reload button in both the block and banner variants of GhAuthErrorHelp. Co-authored-by: Orca --- .../github-project/GhAuthErrorHelp.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/github-project/GhAuthErrorHelp.tsx b/src/renderer/src/components/github-project/GhAuthErrorHelp.tsx index 793bfec5575..2b93194fe94 100644 --- a/src/renderer/src/components/github-project/GhAuthErrorHelp.tsx +++ b/src/renderer/src/components/github-project/GhAuthErrorHelp.tsx @@ -9,7 +9,7 @@ * is actually doing: env-shadow vs. plain missing-scope vs. not-installed. */ import { useEffect, useState } from 'react' -import { Copy, ExternalLink } from 'lucide-react' +import { Copy, ExternalLink, RotateCw } from 'lucide-react' import { toast } from 'sonner' import { Button } from '@/components/ui/button' import type { GitHubProjectViewError } from '@/../../shared/github-project-types' @@ -224,6 +224,15 @@ export function GhAuthErrorHelp({ Docs ) : null} + {/* Why: after running the refresh command in a terminal, users need to + reload the renderer to pick up the new gh token state. */} + ) @@ -250,6 +259,11 @@ export function GhAuthErrorHelp({ Docs ) : null} + {/* Why: after running the refresh command in a terminal, users need to + reload the renderer to pick up the new gh token state. */} + )