Skip to content

Fix stale git diff patch loading race - #433

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-git-diff-rendering-thr_v665qc756z
Jun 26, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-git-diff-rendering-thr_v665qc756z

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Summary

  • track per-file diff patch loading by eviction generation
  • allow visible paths to refetch immediately after patch cache eviction even if an older fetch is still in flight
  • add a regression test for the stale loading race

Testing

  • pnpm exec turbo run test --filter=@bb/app -- --run src/hooks/queries/use-environment-diff-patches.test.tsx
  • pnpm exec turbo run typecheck --filter=@bb/app

@ymichael
ymichael merged commit e72cfe1 into main Jun 26, 2026
6 checks passed
@ymichael
ymichael deleted the bb/fix-git-diff-rendering-thr_v665qc756z branch June 26, 2026 22:15
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