The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): pane-budget test asserts the share relationship, not frozen values; fix stale 300-unit comment
kshitijk4poor9fb98f2b5a56
diff --git a/apps/desktop/src/components/assistant-ui/thread/list.test.ts b/apps/desktop/src/components/assistant-ui/thread/list.test.tsindex 94ed305258c..13b36a5c0f3 100644--- a/apps/desktop/src/components/assistant-ui/thread/list.test.ts+++ b/apps/desktop/src/components/assistant-ui/thread/list.test.ts@@ -103,9 +103,10 @@ describe('transcriptPaneBudget', () => {expect(transcriptPaneBudget(1, false)).toBeGreaterThan(HIDDEN_TRANSCRIPT_RENDER_BUDGET)})- it('shares the visible page budget across five and six mounted panes', () => {- expect(transcriptPaneBudget(5, false)).toBe(120)- expect(transcriptPaneBudget(6, false)).toBe(100)+ it('keeps sharing one page budget past four mounted panes (no quarter floor)', () => {+ const page = transcriptPaneBudget(1, false)+ expect(transcriptPaneBudget(5, false)).toBeLessThan(transcriptPaneBudget(4, false))+ expect(transcriptPaneBudget(6, false)).toBe(Math.ceil(page / 6))})})diff --git a/apps/desktop/src/components/assistant-ui/thread/list.tsx b/apps/desktop/src/components/assistant-ui/thread/list.tsxindex 81c80d0233b..1a18f64ec9c 100644--- a/apps/desktop/src/components/assistant-ui/thread/list.tsx+++ b/apps/desktop/src/components/assistant-ui/thread/list.tsx@@ -488,7 +488,7 @@ const ThreadMessageListInner: FC<ThreadMessageListProps> = ({// Cut the budget during RENDER, not in the post-commit layout effect. An// effect-time cut is too late: React would first build the whole tree with- // the full budget (up to 300 cost units of markdown + syntax highlighting),+ // the full budget (up to 600 cost units of markdown + syntax highlighting),// commit it, and only then re-render at the small budget. The render-phase// state adjustment restarts this component immediately — before any child// renders — so the heavy commit never happens.