The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): the failed-chunk diff test mounts the chunk again under the on-screen gate
Teknium33c56b27ed97
diff --git a/apps/desktop/src/components/chat/diff-lines.test.tsx b/apps/desktop/src/components/chat/diff-lines.test.tsxindex 7628a3f564f..4b65b83c844 100644--- a/apps/desktop/src/components/chat/diff-lines.test.tsx+++ b/apps/desktop/src/components/chat/diff-lines.test.tsx@@ -26,7 +26,10 @@ import { ErrorBoundary } from '@/components/error-boundary'import { FileDiffPanel } from './diff-lines'-afterEach(cleanup)+afterEach(() => {+ cleanup()+ vi.unstubAllGlobals()+})const DIFF = ['diff --git a/file.ts b/file.ts',@@ -53,6 +56,10 @@ function renderQuietly(node: Parameters<typeof render>[0]) {describe('FileDiffPanel survives a failed lazy syntax-diff chunk', () => {it('degrades to the plain colored diff instead of taking down the surrounding boundary', async () => {+ // Highlighting waits until the card is on screen, and jsdom never reports an intersection:+ // without an observer the card highlights at once, so the failing chunk really mounts.+ vi.stubGlobal('IntersectionObserver', undefined)+const { container } = renderQuietly(<ErrorBoundary fallback={() => <div>{WORKSPACE_FALLBACK_TEXT}</div>} label="workspace"><FileDiffPanel diff={DIFF} path="file.ts" />