Skip to content

Add a View log button to failed provider installs in onboarding - #5269

Merged
SawyerHood merged 2 commits into
mainfrom
bb/show-provider-installation-failure-details-thr_ew8spx8zgs
Oct 9, 2026
Merged

SawyerHood merged 2 commits into
mainfrom
bb/show-provider-installation-failure-details-thr_ew8spx8zgs

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

When a provider install failed in the first-run setup guide, the agent row said "Install failed. Check the log, then retry." but the row had no way to open that log. The only route to it was the "View log" action on the failure toast, which disappears.

What changed

  • apps/app/src/components/onboarding/OnboardingViews.tsx: a failed install row now shows a View log button next to Retry. It also shows when the machine reports no install action, so the log stays reachable without a retry.

  • apps/app/src/components/onboarding/OnboardingFlow.tsx: the button opens the failure's stored log in the existing provider CLI install log dialog, the same one the Updates settings page and the failure toast use. The row text is shortened to "Install failed", since the buttons now carry the rest and the longer text was truncated.

  • apps/app/src/components/onboarding/Onboarding.stories.tsx: the failed-install story passes the new handler and the shorter text.

  • apps/app/src/components/secondary-panel/lazySecondaryPanelComponents.tsx: unrelated fix for a type error on main that failed this PR's lint and typecheck job. The attachment preview tab (Convert large text pastes into ordinary attachments #5098) passed the shared loading component directly, but that component requires a copy path (Show one loading state per action across the timeline, panels, side chat, and palette #5264) the tab never supplies. The loading state now shows the attachment name with no copy path, matching the loaded preview.

No wire, CLI, or configuration changes.

How you verified

  • Added apps/app/src/components/onboarding/OnboardingViews.test.tsx: the log button appears only on the agent whose install failed and reports that agent, and it stays available when no retry is offered.
  • pnpm exec turbo run test --filter=@bb/app -- src/components/onboarding src/components/secondary-panel (565 tests pass).
  • pnpm exec turbo run typecheck lint --filter=@bb/app (0 errors; it fails on main without the loading-state fix).
  • Not checked in the running app.

🤖 Generated with Claude Code

AGENT GENERATED

@SawyerHood
SawyerHood marked this pull request as ready for review October 9, 2026 19:07
SawyerHood and others added 2 commits October 9, 2026 19:08
A failed install in the setup guide told the user to check the log but
offered no way to open it from the row. The row now opens the stored
install log in the existing log dialog, including when the machine
offers no retry action.

Co-Authored-By: Claude Code <[email protected]>
The attachment preview tab passed the shared file preview loading
component directly, but that component requires a copy path the tab
never supplies, so the app typecheck failed on main. The loading state
now shows the attachment name with no copy path, matching what the
loaded preview shows.

Co-Authored-By: Claude Code <[email protected]>
@SawyerHood
SawyerHood force-pushed the bb/show-provider-installation-failure-details-thr_ew8spx8zgs branch from 2893669 to bb493d6 Compare October 9, 2026 19:10
@SawyerHood
SawyerHood merged commit 1c5ea54 into main Oct 9, 2026
28 checks passed
@SawyerHood
SawyerHood deleted the bb/show-provider-installation-failure-details-thr_ew8spx8zgs branch October 9, 2026 19:19
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