The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(welcome): make the hand-off's reopen control actually reopen
[email protected]4ebd1effb552
diff --git a/app/src/pages/Welcome.tsx b/app/src/pages/Welcome.tsxindex cf29dc8c7f..197035d88f 100644--- a/app/src/pages/Welcome.tsx+++ b/app/src/pages/Welcome.tsx@@ -25,6 +25,17 @@ import { openUrl } from '../utils/openUrl';const log = createDebug('app:welcome');+/** The sign-in buttons, shared by the TinyHumans card and the hand-off panel. */+const ProviderButtons = () => (+ <div className="flex flex-wrap items-center justify-center gap-3">+ {oauthProviderConfigs+ .filter(provider => provider.showOnWelcome)+ .map(provider => (+ <OAuthProviderButton key={provider.id} provider={provider} className="rounded-full!" />+ ))}+ </div>+);+const Welcome = () => {const { t } = useT();const navigate = useNavigate();@@ -190,13 +201,9 @@ const Welcome = () => {take the self-hosted path instead. */}{!requiresAppDataReset ? (<div className="mt-3 flex flex-wrap gap-2">- <Button- variant="secondary"- size="sm"- onClick={() => setShowProviders(true)}- data-testid="welcome-handoff-retry">- {t('welcome.handoff.retry')}- </Button>+ <div data-testid="welcome-handoff-retry">+ <ProviderButtons />+ </div><Buttonvariant="secondary"size="sm"@@ -250,13 +257,13 @@ const Welcome = () => {<p className="text-base font-semibold text-content">{t('welcome.handoff.title')}</p><p className="mt-1 text-sm text-content-muted">{t('welcome.handoff.body')}</p></div>- <Button- variant="secondary"- size="sm"- onClick={() => setShowProviders(true)}- data-testid="welcome-handoff-reopen">- {t('welcome.handoff.reopen')}- </Button>+ {/* The real action, not a button that sets state nothing reads:+ the provider buttons only render in the non-processing branch,+ so toggling `showProviders` from here did nothing at all. */}+ <div data-testid="welcome-handoff-reopen">+ <p className="mb-2 text-xs text-content-muted">{t('welcome.handoff.reopen')}</p>+ <ProviderButtons />+ </div></div></Card>) : (diff --git a/app/src/pages/__tests__/Welcome.test.tsx b/app/src/pages/__tests__/Welcome.test.tsxindex 1505e373d8..5b4222a899 100644--- a/app/src/pages/__tests__/Welcome.test.tsx+++ b/app/src/pages/__tests__/Welcome.test.tsx@@ -386,7 +386,7 @@ describe('Welcome — OAuth buttons presence', () => {expect(screen.queryByRole('button', { name: 'discord' })).not.toBeInTheDocument();});- it('hides OAuth buttons while auth is processing', () => {+ it('swaps the cards for the hand-off panel while auth is processing', () => {vi.mocked(useDeepLinkAuthState).mockReturnValue({isProcessing: true,errorMessage: null,@@ -395,7 +395,15 @@ describe('Welcome — OAuth buttons presence', () => {});renderWithProviders(<Welcome />);- expect(screen.queryByRole('button', { name: 'google' })).not.toBeInTheDocument();+ // The two choice cards give way to the hand-off panel...+ expect(screen.queryByTestId('welcome-card-tinyhumans')).not.toBeInTheDocument();+ expect(screen.getByTestId('welcome-handoff')).toBeInTheDocument();++ // ...which keeps the sign-in buttons reachable on purpose. Sign-in happens+ // in another window, so a user who closed it or never saw it open needs a+ // way to reopen it. A control that cannot do that is a dead end.+ expect(screen.getByTestId('welcome-handoff-reopen')).toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'google' })).toBeInTheDocument();});});