Skip to content

The agent that grows with you

test(desktop): trim the unbudgeted-tail coverage to two invariants

kshitijk4poor5c4b87a37170
diff --git a/apps/desktop/src/components/assistant-ui/thread/list.test.ts b/apps/desktop/src/components/assistant-ui/thread/list.test.ts
index d95764126f9..4966d07eb6d 100644
--- a/apps/desktop/src/components/assistant-ui/thread/list.test.ts
+++ b/apps/desktop/src/components/assistant-ui/thread/list.test.ts
@@ -274,15 +274,6 @@ describe('firstVisibleGroupIndex', () => {
expect(firstVisibleGroupIndex(grown, 60, 0, 1)).toBe(1)
})
- it('keeps the cut stable when the tail completes', () => {
- // With the newest group always unbudgeted, a heavy tail that finishes
- // streaming does not advance the cut — the completion transition cannot
- // change firstVisibleGroupIndex.
- const groups = [group('old', 50), group('recent', 30), group('tail', 5_000)]
-
- expect(firstVisibleGroupIndex(groups, 60, 0, 1)).toBe(0)
- })
-
it('exempts exactly one newest group while older history stays budgeted', () => {
const groups = [group('a', 200), group('b', 50), group('c', 50), group('d', 50), group('e', 10_000)]