Skip to content

test: Assert stale hydrate metadata is ignored#6057

Merged
SivanCola merged 1 commit into
main-v2from
codex/hydrate-performance-breadcrumbs
Jul 6, 2026
Merged

test: Assert stale hydrate metadata is ignored#6057
SivanCola merged 1 commit into
main-v2from
codex/hydrate-performance-breadcrumbs

Conversation

@SivanCola

Copy link
Copy Markdown
Collaborator

Summary

  • Add explicit regression assertions that late MetaForTab results from a replaced tab do not switch the visible tab or overwrite visible metadata.
  • Strengthen the hydrate performance regression coverage related to [Bug]: Reasonix 检测到响应卡顿 #5909 after the main hydrate decoupling work already landed on main-v2.

Verification

  • corepack pnpm --dir desktop/frontend exec tsx src/__tests__/tab-switch-hydration.test.tsx
  • corepack pnpm --dir desktop/frontend exec tsc --noEmit
  • corepack pnpm --dir desktop/frontend exec tsc --noEmit -p tsconfig.test.json
  • git diff --check origin/main-v2..HEAD

Cache impact

Cache-impact: none, frontend-only test coverage for hydrate state handling.
Cache-guard: corepack pnpm --dir desktop/frontend exec tsx src/__tests__/tab-switch-hydration.test.tsx
System-prompt-review: N/A

@SivanCola SivanCola requested a review from esengine as a code owner July 6, 2026 03:29
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) and removed v2 Go rewrite (1.x) — main-v2 branch, active development labels Jul 6, 2026
@SivanCola SivanCola merged commit b922cb2 into main-v2 Jul 6, 2026
15 checks passed
@SivanCola SivanCola deleted the codex/hydrate-performance-breadcrumbs branch July 6, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant