From d78712fa6aed366902d50df42ac6203ce984aa9a Mon Sep 17 00:00:00 2001 From: Alex Bespoyasov Date: Thu, 30 Jul 2026 15:02:07 +0200 Subject: [PATCH 1/2] test: fix false-negative assertions --- __tests__/ui/screens/InstallPluginsScreen.test.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/__tests__/ui/screens/InstallPluginsScreen.test.tsx b/__tests__/ui/screens/InstallPluginsScreen.test.tsx index c22b4e6..0ca79bb 100644 --- a/__tests__/ui/screens/InstallPluginsScreen.test.tsx +++ b/__tests__/ui/screens/InstallPluginsScreen.test.tsx @@ -49,13 +49,13 @@ describe('InstallPluginsScreen', () => { }); }); - it('advances to Authenticate on Skip', async () => { + it('advances to ConnectTools on Skip', async () => { using sut = renderApp({ screen: ScreenId.InstallPlugins }); sut.stdin.write(ARROW_DOWN + ARROW_DOWN + ARROW_DOWN + ENTER); await waitFor(() => { - expect(sut.lastFrame()).toContain('Sign in to Confidence'); + expect(sut.lastFrame()).toContain('Connect your AI to Confidence'); }); }); @@ -88,7 +88,7 @@ describe('InstallPluginsScreen', () => { sut.stdin.write(ARROW_DOWN + ENTER); await waitFor(() => { - expect(sut.lastFrame()).toContain('Sign in to Confidence'); + expect(sut.lastFrame()).toContain('Connect your AI to Confidence'); }); }); @@ -106,7 +106,7 @@ describe('InstallPluginsScreen', () => { sut.stdin.write(ENTER); await waitFor(() => { - expect(sut.lastFrame()).toContain('Sign in to Confidence'); + expect(sut.lastFrame()).toContain('Connect your AI to Confidence'); }); }); From acbd0a5eed631d5a5b16eafd148338d0ce6838f3 Mon Sep 17 00:00:00 2001 From: Alex Bespoyasov Date: Thu, 30 Jul 2026 15:02:48 +0200 Subject: [PATCH 2/2] fix: handle retry option when failed to install plugins --- .../screens/install-plugins/InstallPluginsScreen.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ui/tui/screens/install-plugins/InstallPluginsScreen.tsx b/src/ui/tui/screens/install-plugins/InstallPluginsScreen.tsx index c9f8092..02e86a8 100644 --- a/src/ui/tui/screens/install-plugins/InstallPluginsScreen.tsx +++ b/src/ui/tui/screens/install-plugins/InstallPluginsScreen.tsx @@ -161,10 +161,14 @@ export function InstallPluginsScreen() { { label: 'Skip', value: 'skip' }, ]} onSelect={(value) => { - if (value === 'skip') { - track(te.pluginSkippedAfterError()); - log(pluginSkippedAfterError(error)); + if (value === 'retry') { + const ide = $session.get().ide; + if (ide) selectIde(ide); + return; } + + track(te.pluginSkippedAfterError()); + log(pluginSkippedAfterError(error)); navigate.to('next'); }} />