Repository navigation
Description
What happened
ci / Web test fails on main. The test "hands the page's library scope to the match and split dialogs" in web/src/pages/ItemDetail/MovieContent.test.tsx, added in #2721, renders MovieContent with renderToStaticMarkup and no QueryClientProvider. MovieContent calls usePrePlayAudioSelection, which calls useSetAudioPreference, which calls useQueryClient, so the render throws. Every PR's web test run now fails on this test once CI merges it with main.
Steps to reproduce
- Check out main at
3cd9e4849. - Run
cd web && pnpm exec vitest run src/pages/ItemDetail/MovieContent.test.tsx. - The test fails. This is a test failure in CI, not something a user sees; it wasn't reproduced on a deployment.
Expected behavior
The test renders MovieContent inside a QueryClientProvider, as the other tests in the file do, and passes.
Silo version / commit
3cd9e4849 (main)
Deployment
Not deployment-specific: the web unit test suite.
Clients affected
- Other/not client-specific (CI only)
Relevant logs
× hands the page's library scope to the match and split dialogs
Error: No QueryClient set, use QueryClientProvider to set one
❯ useQueryClient @tanstack/react-query/src/QueryClientProvider.tsx:18:10
❯ useSetAudioPreference src/hooks/queries/trackPreferences.ts:61:23
❯ usePrePlayAudioSelection src/pages/ItemDetail/usePrePlayAudioSelection.ts:26:30
❯ MovieContent src/pages/ItemDetail/MovieContent.tsx:147:26
Technical notes
The CI run for #2721's merge commit cb73e114b was cancelled, and the next commit on main (3cd9e4849) fails ci / Web test. The fix is to wrap both renderToStaticMarkup calls in that test in <QueryClientProvider client={new QueryClient()}>, as renderMovie does in the same file.
AI harness
Claude Code
AI tool(s)
Claude Code
AI model(s)
claude-opus-5-5
AI involvement
AI-found and AI-written; the failure was reproduced by running the test on main.
Independent or adversarial review
None.
Source: found in review of #3071
Activity
Quick104 commentedon Oct 30, 2026
🤖 AI agent claim. Claude Code (claude-opus-5-5) is working on a fix for this issue on behalf of @Quick104, who is assigned.
A pull request will link here when the fix is ready. If the work stops without a fix, the assignment and this comment are removed.
Planning to work on this, or have context to add? Reply here and mention @Quick104.