Skip to content

fix(desktop): keep latest onboarding snapshot handoff - #1924

Merged
Astro-Han merged 1 commit into
mainfrom
fix/1923-stabilize-project-e2e
Aug 2, 2026
Merged

fix(desktop): keep latest onboarding snapshot handoff#1924
Astro-Han merged 1 commit into
mainfrom
fix/1923-stabilize-project-e2e

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

The desktop bootstrap latched the first mounted onboarding snapshot until AppShell consumed it. If a session was created and a newer snapshot arrived before React committed, AppShell still seeded the older empty session list. The conversation rendered, but the sidebar never showed the unassigned-project entry.

Keep the latest mounted snapshot as the one-time bootstrap handoff and add a regression test for a session created between two pre-commit snapshot reductions. This fixes the flaky project-management.spec.ts failure without adding retries or changing the E2E timeout.

Closes #1923

Verification

  • npm --workspace @maka/desktop run test -- src/main/__tests__/use-onboarding-snapshot.test.ts: 10 passed
  • npm --workspace @maka/desktop run build:main: passed
  • focused project-management.spec.ts, 50 serial repeats: 50 passed
  • npm --workspace @maka/desktop run test:e2e: 89 passed
  • npm run lint: passed
  • npm run format:check: passed
  • npm --workspace @maka/desktop run typecheck: passed
  • npm --workspace @maka/desktop test: 1364 passed
  • git diff --check: passed

@Astro-Han
Astro-Han marked this pull request as ready for review August 2, 2026 16:45
@Astro-Han
Astro-Han merged commit 3ce9afc into main Aug 2, 2026
5 checks passed
@Astro-Han
Astro-Han deleted the fix/1923-stabilize-project-e2e branch August 2, 2026 16:46
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.

test(desktop): fix flaky unassigned-project E2E

1 participant