The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): trim HUD band tests to the two invariants
Teknium7617a91d4463
diff --git a/apps/desktop/src/app/hud/transcript-band.test.tsx b/apps/desktop/src/app/hud/transcript-band.test.tsxindex e74ba1c4745..5153d1329f0 100644--- a/apps/desktop/src/app/hud/transcript-band.test.tsx+++ b/apps/desktop/src/app/hud/transcript-band.test.tsx@@ -6,15 +6,7 @@ import { stubResizeObserver } from '@/test/jsdom'import { useHudTranscriptBand } from './transcript-band'-function Harness({- children,- withThreadContent = true,- withViewport-}: {- children?: ReactNode- withThreadContent?: boolean- withViewport: boolean-}) {+function Harness({ children, withViewport }: { children?: ReactNode; withViewport: boolean }) {const ref = useRef<HTMLDivElement | null>(null)useHudTranscriptBand(ref)@@ -24,7 +16,7 @@ function Harness({<div data-slot="composer-dock" />{withViewport && (<div data-slot="aui_thread-viewport">- {withThreadContent && <div data-slot="aui_thread-content">{children ?? <div>row</div>}</div>}+ <div data-slot="aui_thread-content">{children ?? <div>row</div>}</div></div>)}</div>@@ -90,20 +82,10 @@ describe('useHudTranscriptBand', () => {// short session at --hud-band-height: 0px and clips the transcript.it('measures a TurnRow with data-slot="aui_message-group" as transcript height', () => {stubMeasuredRects()- const { container } = render(- <Harness withViewport>- <div data-slot="aui_message-group">turn</div>- </Harness>- )-- expect(bandHeight(container)).toBeGreaterThan(0)- })- it('still measures slot-less direct children such as show-earlier', () => {- stubMeasuredRects()const { container } = render(<Harness withViewport>- <button type="button">Show earlier</button>+ <div data-slot="aui_message-group">turn</div></Harness>)@@ -112,6 +94,7 @@ describe('useHudTranscriptBand', () => {it('does not treat clearance or background-resume spacers as message rows', () => {stubMeasuredRects()+const { container } = render(<Harness withViewport><div data-slot="aui_background-resume">resume</div>@@ -121,11 +104,4 @@ describe('useHudTranscriptBand', () => {expect(bandHeight(container)).toBe(0)})-- it('keeps an empty band when aui_thread-content is missing', () => {- stubMeasuredRects()- const { container } = render(<Harness withThreadContent={false} withViewport />)-- expect(bandHeight(container)).toBe(0)- })})