hermes-agent/apps/desktop/src/components/onboarding
ethernet b2857110b4 fix(desktop): kill loading bar in boot-failure e2e screenshots
The boot-failure screenshot showed a progress bar because of two bugs:

1. waitForBootFailure matched on "Let's get you setup" (the onboarding
   header that mounts from frame 1 during normal boot), so the screenshot
   fired at ~86% progress while the Preparing component's progress bar was
   still painted.

2. The Preparing component kept rendering the progress bar even after
   boot.error was set — it just turned the bar red and appended the error
   text below it.

Fixes:
- Preparing bails out (returns null) when boot.error is set, so
  BootFailureOverlay (z-1400) owns the screen exclusively.
- applyDesktopBootProgress no longer clobbers a previously-set boot.error
  when a late progress event arrives with error: null — failDesktopBoot is
  terminal for the boot cycle.
- waitForBootFailure guards against progress bars being visible and matches
  on actual failure signals (error toast, Retry/Repair buttons), not the
  onboarding header.
- setupDeadBackend now accepts { fakeError: true } which injects
  HERMES_DESKTOP_BOOT_FAKE_ERROR to trigger a real boot failure — the
  previous dead-provider fixture never actually caused a boot failure
  (hermes serve starts fine; the dead endpoint only matters at chat time).
- boot-failure.spec.ts updated to use { fakeError: true }.

Verified: e2e test passes with 0 progress bars in the DOM at screenshot
time (confirmed via DOM inspection), 16/16 vitest tests pass, typecheck
clean.
2026-07-20 11:44:41 -04:00
..
flow.tsx fix: limit desktop model pickers to explicit providers 2026-07-07 15:12:54 -07:00
glyph.tsx refactor(desktop): split onboarding overlay god file into onboarding/ folder 2026-06-30 13:21:49 -05:00
index.test.tsx feat(desktop): promote Fireworks AI to #2 in onboarding provider picker (#66432) 2026-07-17 14:19:57 -04:00
index.tsx fix(desktop): kill loading bar in boot-failure e2e screenshots 2026-07-20 11:44:41 -04:00
providers.tsx fmt(js): npm run fix on merge (#66445) 2026-07-17 18:26:36 +00:00