The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#120098)
hermes-seaeye[bot]9329575b4e4e
diff --git a/apps/desktop/electron/venv-blocker-scan.test.ts b/apps/desktop/electron/venv-blocker-scan.test.tsindex eb181251c87..e7ed1667de4 100644--- a/apps/desktop/electron/venv-blocker-scan.test.ts+++ b/apps/desktop/electron/venv-blocker-scan.test.ts@@ -357,7 +357,6 @@ describe('scanVenvBlockers', () => {const o = await scanVenvBlockers('/r', execReturn('bad json'), stubVenv)assert.equal(o.kind, 'probe-failure')})-})describe('stopSafeVenvBlockers', () => {diff --git a/apps/desktop/electron/window-controls.test.ts b/apps/desktop/electron/window-controls.test.tsindex 0166a0f577e..8d5ed15a71f 100644--- a/apps/desktop/electron/window-controls.test.ts+++ b/apps/desktop/electron/window-controls.test.ts@@ -2,11 +2,7 @@ import assert from 'node:assert/strict'import { describe, test } from 'vitest'-import {- customWindowControlsEnabled,- performWindowControl,- registerWindowControlIpc-} from './window-controls'+import { customWindowControlsEnabled, performWindowControl, registerWindowControlIpc } from './window-controls'class FakeWindow {closed = falsediff --git a/apps/desktop/electron/wslg-launch-process.test.ts b/apps/desktop/electron/wslg-launch-process.test.tsindex 708cbcc990b..4682c668e88 100644--- a/apps/desktop/electron/wslg-launch-process.test.ts+++ b/apps/desktop/electron/wslg-launch-process.test.ts@@ -191,9 +191,7 @@ test.skipIf(process.platform !== 'linux')(15_000)-test- .skipIf(process.platform !== 'linux')- .each(['', 'seven', '0', '1', '2', '0x7', '100000'])(+test.skipIf(process.platform !== 'linux').each(['', 'seven', '0', '1', '2', '0x7', '100000'])('ignores invalid or closed ready fd %j without breaking child stdio',async readyFd => {await withLauncher(diff --git a/apps/desktop/src/app/chat/right-rail/preview-annotate-host.test.ts b/apps/desktop/src/app/chat/right-rail/preview-annotate-host.test.tsindex 11044b8f5ce..084abcd9e74 100644--- a/apps/desktop/src/app/chat/right-rail/preview-annotate-host.test.ts+++ b/apps/desktop/src/app/chat/right-rail/preview-annotate-host.test.ts@@ -2,11 +2,7 @@ import { describe, expect, it, vi } from 'vitest'import { ANNOTATE_CROP_PAD } from '@/lib/preview-annotate'-import {- bindPreviewExecuteJavaScript,- captureAnnotateCrop,- overlayInstallScript-} from './preview-annotate-host'+import { bindPreviewExecuteJavaScript, captureAnnotateCrop, overlayInstallScript } from './preview-annotate-host'describe('preview annotate host', () => {it('does not evaluate guest template interpolations while wrapping the overlay source', () => {diff --git a/apps/desktop/src/app/chat/right-rail/preview-pane.test.tsx b/apps/desktop/src/app/chat/right-rail/preview-pane.test.tsxindex 5aa60af39f6..d4c5196006d 100644--- a/apps/desktop/src/app/chat/right-rail/preview-pane.test.tsx+++ b/apps/desktop/src/app/chat/right-rail/preview-pane.test.tsx@@ -446,7 +446,12 @@ describe('PreviewPane console state', () => {})it('workspace edits reload a loopback dev page, never a site the tab browsed to', async () => {- const target = { kind: 'url', label: 'Preview', source: 'http://localhost:5174', url: 'http://localhost:5174' } as const+ const target = {+ kind: 'url',+ label: 'Preview',+ source: 'http://localhost:5174',+ url: 'http://localhost:5174'+ } as constconst rendered = render(<PreviewPane reloadRequest={0} tabId="browser" target={target} />)const webview = rendered.container.querySelector('webview') as HTMLElementconst reloadIgnoringCache = vi.fn()diff --git a/apps/desktop/src/components/assistant-ui/markdown-text.overflow.test.tsx b/apps/desktop/src/components/assistant-ui/markdown-text.overflow.test.tsxindex f756e166707..2b526f19e0b 100644--- a/apps/desktop/src/components/assistant-ui/markdown-text.overflow.test.tsx+++ b/apps/desktop/src/components/assistant-ui/markdown-text.overflow.test.tsx@@ -53,7 +53,9 @@ describe('markdown surface survives stack-overflow content', () => {// three render through this component. Guarding only one of them is what let// the bug survive an earlier fix attempt.it('survives on the reasoning (disableArtifacts) path', () => {- const { container } = renderQuietly(<MarkdownTextContent disableArtifacts isRunning={false} text={DEGENERATE_UNK} />)+ const { container } = renderQuietly(+ <MarkdownTextContent disableArtifacts isRunning={false} text={DEGENERATE_UNK} />+ )expect(container.textContent).toBeTruthy()})diff --git a/apps/desktop/src/components/ui/dialog.test.tsx b/apps/desktop/src/components/ui/dialog.test.tsxindex 3fc275070b4..2b86349b55e 100644--- a/apps/desktop/src/components/ui/dialog.test.tsx+++ b/apps/desktop/src/components/ui/dialog.test.tsx@@ -19,5 +19,4 @@ describe('DialogContent close button', () => {fireEvent.click(screen.getByRole('button', { name: /close/i }))expect(onOpenChange).toHaveBeenCalledWith(false)})-})diff --git a/apps/desktop/src/hermes.test.ts b/apps/desktop/src/hermes.test.tsindex 11b20872505..221f1291667 100644--- a/apps/desktop/src/hermes.test.ts+++ b/apps/desktop/src/hermes.test.ts@@ -627,7 +627,9 @@ describe('Hermes REST helpers', () => {it('bounds blocking transcription timeouts by payload length', () => {expect(audioTranscribeRequestTimeoutMs('data:audio/webm;base64,AA==')).toBe(AUDIO_TRANSCRIBE_MIN_REQUEST_TIMEOUT_MS)- expect(audioTranscribeRequestTimeoutMs('x'.repeat(3_000_000))).toBeGreaterThan(AUDIO_TRANSCRIBE_MIN_REQUEST_TIMEOUT_MS)+ expect(audioTranscribeRequestTimeoutMs('x'.repeat(3_000_000))).toBeGreaterThan(+ AUDIO_TRANSCRIBE_MIN_REQUEST_TIMEOUT_MS+ )expect(audioTranscribeRequestTimeoutMs('x'.repeat(3_000_000))).toBeLessThan(AUDIO_TRANSCRIBE_MAX_REQUEST_TIMEOUT_MS)expect(audioTranscribeRequestTimeoutMs('x'.repeat(9_000_000))).toBe(AUDIO_TRANSCRIBE_MAX_REQUEST_TIMEOUT_MS)})diff --git a/apps/desktop/src/i18n/runtime.test.ts b/apps/desktop/src/i18n/runtime.test.tsindex 6a235e7e930..adcd6aebd6f 100644--- a/apps/desktop/src/i18n/runtime.test.ts+++ b/apps/desktop/src/i18n/runtime.test.ts@@ -24,7 +24,9 @@ describe('desktop i18n runtime translator', () => {})it('passes arguments to function translations', () => {- expect(translateNow('notifications.updateReadyMessage', 2)).toBe(TRANSLATIONS.en.notifications.updateReadyMessage(2))+ expect(translateNow('notifications.updateReadyMessage', 2)).toBe(+ TRANSLATIONS.en.notifications.updateReadyMessage(2)+ )expect(translateNow('notifications.updateReadyMessage', 2)).toContain('2')})diff --git a/apps/desktop/src/lib/local-preview.ts b/apps/desktop/src/lib/local-preview.tsindex f8a09389a1e..15f00442162 100644--- a/apps/desktop/src/lib/local-preview.ts+++ b/apps/desktop/src/lib/local-preview.ts@@ -93,7 +93,12 @@ export function isLoopbackPreviewUrl(value: string): boolean {return false}- return LOOPBACK_HOST_RE.test(url.hostname.toLowerCase().replace(/^\[|\]$/g, '').replace(/\.$/, ''))+ return LOOPBACK_HOST_RE.test(+ url.hostname+ .toLowerCase()+ .replace(/^\[|\]$/g, '')+ .replace(/\.$/, '')+ )} catch {return false}diff --git a/apps/desktop/src/lib/model-status-label.test.ts b/apps/desktop/src/lib/model-status-label.test.tsindex 024f614821b..4ecac133b1e 100644--- a/apps/desktop/src/lib/model-status-label.test.ts+++ b/apps/desktop/src/lib/model-status-label.test.ts@@ -1,11 +1,6 @@import { describe, expect, it } from 'vitest'-import {- currentPickerSelection,- displayModelName,- formatModelPillLabel,- modelDisplayParts-} from './model-status-label'+import { currentPickerSelection, displayModelName, formatModelPillLabel, modelDisplayParts } from './model-status-label'describe('model-status-label', () => {it('strips trailing date-pin snapshots and dots hyphenated Anthropic versions', () => {diff --git a/apps/desktop/src/lib/runtime-readiness.test.ts b/apps/desktop/src/lib/runtime-readiness.test.tsindex 34b03ae9879..cb3df198edf 100644--- a/apps/desktop/src/lib/runtime-readiness.test.ts+++ b/apps/desktop/src/lib/runtime-readiness.test.ts@@ -1,10 +1,6 @@import { describe, expect, it } from 'vitest'-import {- fetchRuntimeReadinessSignals,- interpretRuntimeReadiness,- runtimeReadinessDisplay-} from './runtime-readiness'+import { fetchRuntimeReadinessSignals, interpretRuntimeReadiness, runtimeReadinessDisplay } from './runtime-readiness'describe('interpretRuntimeReadiness', () => {it('prefers runtime_check when both signals exist', () => {diff --git a/apps/desktop/src/plugins/hermes-bots/cron-detail.test.tsx b/apps/desktop/src/plugins/hermes-bots/cron-detail.test.tsxindex fd51ce1dcd2..1f3ffc90a35 100644--- a/apps/desktop/src/plugins/hermes-bots/cron-detail.test.tsx+++ b/apps/desktop/src/plugins/hermes-bots/cron-detail.test.tsx@@ -28,8 +28,7 @@ vi.mock('@hermes/plugin-sdk', async importOriginal => {return { ...sdk, host: { ...sdk.host, request } }})-const { RoutineDetailDialog, RoutineRow, routineDetailIssue, routineDetailRows } =- await import('./cron')+const { RoutineDetailDialog, RoutineRow, routineDetailIssue, routineDetailRows } = await import('./cron')const activeJob: RoutineJob = {deliver: 'bot-chat',diff --git a/apps/desktop/src/plugins/hermes-bots/soul.test.ts b/apps/desktop/src/plugins/hermes-bots/soul.test.tsindex aaccd315766..4f9f46cdf85 100644--- a/apps/desktop/src/plugins/hermes-bots/soul.test.ts+++ b/apps/desktop/src/plugins/hermes-bots/soul.test.ts@@ -77,7 +77,6 @@ describe('appending the protocol to an existing SOUL', () => {expect(twice).toBe(once.trim())expect(sectionCount(twice)).toBe(1)})-})describe('composeSoul', () => {diff --git a/apps/desktop/src/plugins/kanban/board-switcher.test.tsx b/apps/desktop/src/plugins/kanban/board-switcher.test.tsxindex dc5539f9d85..27051902cba 100644--- a/apps/desktop/src/plugins/kanban/board-switcher.test.tsx+++ b/apps/desktop/src/plugins/kanban/board-switcher.test.tsx@@ -48,5 +48,4 @@ describe('board switcher', () => {expect(await screen.findByText('Shipping')).toBeTruthy()})-})diff --git a/apps/desktop/src/sdk/profile-routing.test.ts b/apps/desktop/src/sdk/profile-routing.test.tsindex b37adb742e9..cc78201afa0 100644--- a/apps/desktop/src/sdk/profile-routing.test.ts+++ b/apps/desktop/src/sdk/profile-routing.test.ts@@ -1230,7 +1230,6 @@ describe('profile-aware plugin session opens', () => {expect(unhandled).toEqual([])})-})describe('shared-remote hydration gate (#89843)', () => {diff --git a/apps/desktop/src/store/active-work.test.ts b/apps/desktop/src/store/active-work.test.tsindex f9db940e685..9b518d4de54 100644--- a/apps/desktop/src/store/active-work.test.ts+++ b/apps/desktop/src/store/active-work.test.ts@@ -47,5 +47,4 @@ describe('active work bridge', () => {expect(setActiveWork).toHaveBeenLastCalledWith({ count: 0, titles: [] })})-})diff --git a/apps/desktop/src/store/bot-chat-scope.test.ts b/apps/desktop/src/store/bot-chat-scope.test.tsindex 18042a1c65f..8b89af1d7bc 100644--- a/apps/desktop/src/store/bot-chat-scope.test.ts+++ b/apps/desktop/src/store/bot-chat-scope.test.ts@@ -70,5 +70,4 @@ describe('the bot-chat set moves independently of session state', () => {expect(isBotChatSession('runtime-1')).toBe(true)})-})diff --git a/apps/desktop/src/store/clarify.test.ts b/apps/desktop/src/store/clarify.test.tsindex 1ae3c759c0f..f1973af7e93 100644--- a/apps/desktop/src/store/clarify.test.ts+++ b/apps/desktop/src/store/clarify.test.ts@@ -160,7 +160,6 @@ describe('normalizeChoices', () => {const ok = 'y'.repeat(200)expect(normalizeChoices(['a', long, ok])).toEqual(['a', ok])})-})describe('normalizeQuestions', () => {diff --git a/apps/desktop/src/store/compaction.test.ts b/apps/desktop/src/store/compaction.test.tsindex c851d4ea70c..0f7f11900b8 100644--- a/apps/desktop/src/store/compaction.test.ts+++ b/apps/desktop/src/store/compaction.test.ts@@ -22,5 +22,4 @@ describe('compaction store', () => {expect($compactingSessions.get()).toEqual({ 'session-b': true })})-})diff --git a/apps/desktop/src/store/composer-popout-preference.test.ts b/apps/desktop/src/store/composer-popout-preference.test.tsindex 466eff05937..c2a866d27d8 100644--- a/apps/desktop/src/store/composer-popout-preference.test.ts+++ b/apps/desktop/src/store/composer-popout-preference.test.ts@@ -47,5 +47,4 @@ describe('composer pop-out preference', () => {position: { bottom: 48, right: 64 }})})-})diff --git a/apps/desktop/src/store/composer-queue.test.ts b/apps/desktop/src/store/composer-queue.test.tsindex 9d5689db886..f06da26238b 100644--- a/apps/desktop/src/store/composer-queue.test.ts+++ b/apps/desktop/src/store/composer-queue.test.ts@@ -151,7 +151,6 @@ describe('migrateQueuedPrompts', () => {expect(migrateQueuedPrompts('rt-old', 'rt-new')).toBe(false)expect(migrateQueuedPrompts('rt-x', 'rt-x')).toBe(false)})-})describe('shouldAutoDrain', () => {@@ -172,7 +171,6 @@ describe('shouldAutoDrain', () => {// HALT — the park must hold the head back until they resume.expect(shouldAutoDrain({ isBusy: false, parked: true, queueLength: 1 })).toBe(false)})-})describe('parked queue sessions', () => {diff --git a/apps/desktop/src/store/composer-suggestions.test.ts b/apps/desktop/src/store/composer-suggestions.test.tsindex 89258782cbb..9b3a22c65de 100644--- a/apps/desktop/src/store/composer-suggestions.test.ts+++ b/apps/desktop/src/store/composer-suggestions.test.ts@@ -103,5 +103,4 @@ describe('composer suggestion bus', () => {offerSuggestions('s8', 'test', [])})-})diff --git a/apps/desktop/src/store/connection-request.test.ts b/apps/desktop/src/store/connection-request.test.tsindex e0d3d418d7b..c0210e24c41 100644--- a/apps/desktop/src/store/connection-request.test.ts+++ b/apps/desktop/src/store/connection-request.test.ts@@ -214,5 +214,4 @@ describe('connection-request store', () => {expect(await skipConnectionRequest('a')).toBe(true)expect(rpc.mock.calls[0][1].result).toEqual({ settled_by: 'continue' })})-})diff --git a/apps/desktop/src/store/free-tier-setup-failure.test.ts b/apps/desktop/src/store/free-tier-setup-failure.test.tsindex ed0f0408d37..4ecfe9d8ebd 100644--- a/apps/desktop/src/store/free-tier-setup-failure.test.ts+++ b/apps/desktop/src/store/free-tier-setup-failure.test.ts@@ -1,11 +1,6 @@import { afterEach, describe, expect, it } from 'vitest'-import {- $freeTierStatus,- type FreeTierRequester,- freeTierSetupFailure,- provisionFreeTier-} from '@/store/free-tier'+import { $freeTierStatus, type FreeTierRequester, freeTierSetupFailure, provisionFreeTier } from '@/store/free-tier'import type { FreeTierStatus } from '@/types/hermes'const NO_IDENTITY: FreeTierStatus = {diff --git a/apps/desktop/src/store/gateway-connection-lifecycle.test.ts b/apps/desktop/src/store/gateway-connection-lifecycle.test.tsindex 92a7edae9a1..aa536213ae3 100644--- a/apps/desktop/src/store/gateway-connection-lifecycle.test.ts+++ b/apps/desktop/src/store/gateway-connection-lifecycle.test.ts@@ -956,7 +956,6 @@ describe('cooperative pool retirement (supersedes #104871)', () => {await vi.advanceTimersByTimeAsync(0)expect(getConnectionFor.mock.calls.length).toBe(before + 2)})-})describe('rejected secondary authentication', () => {diff --git a/apps/desktop/src/themes/presets.test.ts b/apps/desktop/src/themes/presets.test.tsindex c9bdf006480..a4d4eb54037 100644--- a/apps/desktop/src/themes/presets.test.ts+++ b/apps/desktop/src/themes/presets.test.ts@@ -25,4 +25,3 @@ describe('theme typography emoji fallback (#40364)', () => {expect(stack).toMatch(/Apple Color Emoji|Segoe UI Emoji|Noto Color Emoji|(^|,\s*)emoji\b/)})})-diff --git a/apps/desktop/src/themes/profile-theme.test.ts b/apps/desktop/src/themes/profile-theme.test.tsindex 7666f16c66c..34387b710cb 100644--- a/apps/desktop/src/themes/profile-theme.test.ts+++ b/apps/desktop/src/themes/profile-theme.test.ts@@ -46,4 +46,3 @@ describe.each(cases)('per-profile $name', ({ pref, fallback, a, b, junk }) => {expect(pref.resolve('work')).toBe(fallback)})})-diff --git a/ui-tui/packages/hermes-ink/src/ink/terminal.test.ts b/ui-tui/packages/hermes-ink/src/ink/terminal.test.tsindex 3cbfb9d782d..e69de8c0e1f 100644--- a/ui-tui/packages/hermes-ink/src/ink/terminal.test.ts+++ b/ui-tui/packages/hermes-ink/src/ink/terminal.test.ts@@ -93,19 +93,16 @@ describe('skipKittyKeyboardProtocol', () => {}})- it.each(['kitty', 'tmux'])(- 'keeps the dual push for %s',- async terminal => {- const { env } = await import('../utils/env.js')- const { skipKittyKeyboardProtocol } = await import('./terminal.js')- const saved = env.terminal-- try {- env.terminal = terminal- expect(skipKittyKeyboardProtocol()).toBe(false)- } finally {- env.terminal = saved- }+ it.each(['kitty', 'tmux'])('keeps the dual push for %s', async terminal => {+ const { env } = await import('../utils/env.js')+ const { skipKittyKeyboardProtocol } = await import('./terminal.js')+ const saved = env.terminal++ try {+ env.terminal = terminal+ expect(skipKittyKeyboardProtocol()).toBe(false)+ } finally {+ env.terminal = saved}- )+ })})diff --git a/ui-tui/src/__tests__/terminalParity.test.ts b/ui-tui/src/__tests__/terminalParity.test.tsindex 480e86f3dcc..7c641c4854d 100644--- a/ui-tui/src/__tests__/terminalParity.test.ts+++ b/ui-tui/src/__tests__/terminalParity.test.ts@@ -24,5 +24,4 @@ describe('terminalParityHints', () => {expect(hints.some(h => h.key === 'ide-setup')).toBe(true)})-})diff --git a/ui-tui/src/__tests__/textInputCursorSourceOfTruth.test.ts b/ui-tui/src/__tests__/textInputCursorSourceOfTruth.test.tsindex 1be247df49b..d2b25bcb71d 100644--- a/ui-tui/src/__tests__/textInputCursorSourceOfTruth.test.ts+++ b/ui-tui/src/__tests__/textInputCursorSourceOfTruth.test.ts@@ -31,7 +31,6 @@ describe('resolveCursorLayout', () => {expect(result).toEqual(expected)})-})describe('fastBackspaceEffect', () => {@@ -47,7 +46,6 @@ describe('fastBackspaceEffect', () => {expect(effect.write).toBe('\b \b')expect(effect.advanceDelta).toBe(-1)})-})describe('fastAppendEffect', () => {@@ -61,5 +59,4 @@ describe('fastAppendEffect', () => {expect(effect.write).toBe(' world')expect(effect.advanceDelta).toBe(' world'.length)})-})diff --git a/ui-tui/src/__tests__/textInputFastEcho.test.ts b/ui-tui/src/__tests__/textInputFastEcho.test.tsindex a917c5ebe0c..c950c2f70ee 100644--- a/ui-tui/src/__tests__/textInputFastEcho.test.ts+++ b/ui-tui/src/__tests__/textInputFastEcho.test.ts@@ -81,7 +81,6 @@ describe('canFastAppendShape', () => {expect(canFastAppendShape('hello', 5, '\t', COLS, 5)).toBe(false)expect(canFastAppendShape('hello', 5, '\x7f', COLS, 5)).toBe(false)})-})describe('canFastBackspaceShape', () => {@@ -137,7 +136,6 @@ describe('canFastBackspaceShape', () => {expect(canFastBackspaceShape('hello world', 'hello world'.length, 20)).toBe(true)expect(canFastBackspaceShape('abcdefghi', 9, 6)).toBe(true) // visual line 1, col 3 → ok})-})describe('colorizeEcho', () => {@@ -194,7 +192,6 @@ describe('colorizeHint / hintCursorCell', () => {colorize(colorize('T', '#ffffff', 'foreground'), '#8a8094', 'background'))})-})describe('supportsFastEchoTerminal', () => {@@ -256,5 +253,4 @@ describe('supportsFastEchoTerminal', () => {} as NodeJS.ProcessEnv)).toBe(true)})-})diff --git a/ui-tui/src/__tests__/textInputRightClick.test.ts b/ui-tui/src/__tests__/textInputRightClick.test.tsindex 777856e3e68..8f71adfe597 100644--- a/ui-tui/src/__tests__/textInputRightClick.test.ts+++ b/ui-tui/src/__tests__/textInputRightClick.test.ts@@ -31,5 +31,4 @@ describe('decideRightClickAction', () => {text: '你好'})})-})diff --git a/ui-tui/src/__tests__/textInputWordDelete.test.ts b/ui-tui/src/__tests__/textInputWordDelete.test.tsindex cfdf6404943..0d4519072fb 100644--- a/ui-tui/src/__tests__/textInputWordDelete.test.ts+++ b/ui-tui/src/__tests__/textInputWordDelete.test.ts@@ -40,5 +40,4 @@ describe('deleteWordForward', () => {it('is a no-op when the cursor is already at the end', () => {expect(deleteWordForward('foo bar', 7)).toEqual({ cursor: 7, value: 'foo bar' })})-})diff --git a/ui-tui/src/__tests__/topupCommand.test.ts b/ui-tui/src/__tests__/topupCommand.test.tsindex 6e5cb0a48c2..9a8da7a2211 100644--- a/ui-tui/src/__tests__/topupCommand.test.ts+++ b/ui-tui/src/__tests__/topupCommand.test.ts@@ -257,9 +257,7 @@ describe('/billing slash command (overlay-driven)', () => {// ── CF-4: revoked-terminal UX (kill the "15-minute zombie button") ──- it.each([- ['admin', 'An admin stopped remote spending for this terminal']- ])(+ it.each([['admin', 'An admin stopped remote spending for this terminal']])('ctx.charge remote_spending_revoked (%s) → clears the overlay (no zombie button) + actor copy',async (actor, copy) => {const { run, sys } = buildCtx({@@ -384,5 +382,4 @@ describe('/billing slash command (overlay-driven)', () => {expect(ok).toBe(false)expect(printed(sys)).toContain('Monthly spend cap reached.')})-})diff --git a/ui-tui/src/__tests__/turnStore.test.ts b/ui-tui/src/__tests__/turnStore.test.tsindex 0fd82ae8b77..e7071f73734 100644--- a/ui-tui/src/__tests__/turnStore.test.ts+++ b/ui-tui/src/__tests__/turnStore.test.ts@@ -54,5 +54,4 @@ describe('turnStore live progress helpers', () => {expect(archiveTodosAtTurnEnd()).toEqual([])expect(archiveDoneTodos()).toEqual([])})-})diff --git a/ui-tui/src/__tests__/usageCommand.test.ts b/ui-tui/src/__tests__/usageCommand.test.tsindex a91291687ec..681a7af41b3 100644--- a/ui-tui/src/__tests__/usageCommand.test.ts+++ b/ui-tui/src/__tests__/usageCommand.test.ts@@ -105,5 +105,4 @@ describe('/usage slash command', () => {expect(body).toContain('$12.00')expect(body.toLowerCase()).not.toContain('credits')})-})diff --git a/ui-tui/src/__tests__/useConfigSync.test.ts b/ui-tui/src/__tests__/useConfigSync.test.tsindex 7861000db47..79c38f0749c 100644--- a/ui-tui/src/__tests__/useConfigSync.test.ts+++ b/ui-tui/src/__tests__/useConfigSync.test.ts@@ -154,7 +154,6 @@ describe('applyDisplay', () => {expect($uiState.get().sections).toEqual({ activity: 'hidden' })})-})describe('normalizeStatusBar', () => {@@ -275,7 +274,6 @@ describe('applyDisplay → busy_input_mode', () => {applyDisplay({ config: { display: { busy_input_mode: 'steer' } } }, setBell)expect($uiState.get().busyInputMode).toBe('steer')})-})describe('applyDisplay → tui_status_indicator', () => {@@ -292,7 +290,6 @@ describe('applyDisplay → tui_status_indicator', () => {applyDisplay({ config: { display: { tui_status_indicator: 'unicode' } } }, setBell)expect($uiState.get().indicatorStyle).toBe('unicode')})-})// Regressions from Copilot review on #19835: the config-hydration pathdiff --git a/ui-tui/src/__tests__/useQueue.test.ts b/ui-tui/src/__tests__/useQueue.test.tsindex cac3de7ce74..072ea8cb6ae 100644--- a/ui-tui/src/__tests__/useQueue.test.ts+++ b/ui-tui/src/__tests__/useQueue.test.ts@@ -17,7 +17,6 @@ describe('removeAtInPlace', () => {removeAtInPlace(arr, 5)expect(arr).toEqual(['a', 'b'])})-})describe('queue items', () => {diff --git a/ui-tui/src/__tests__/useSubmission.test.ts b/ui-tui/src/__tests__/useSubmission.test.tsindex b5738d8f76c..9529b20218c 100644--- a/ui-tui/src/__tests__/useSubmission.test.ts+++ b/ui-tui/src/__tests__/useSubmission.test.ts@@ -50,5 +50,4 @@ describe('visible interpolation combined with a collapsed paste', () => {expect(submission.display).not.toContain('{!')expect(submission.text).toBe('Tue for line one\nline two')})-})diff --git a/ui-tui/src/__tests__/useVirtualHistoryHeights.test.ts b/ui-tui/src/__tests__/useVirtualHistoryHeights.test.tsindex 769eeb594b0..0046e00ea66 100644--- a/ui-tui/src/__tests__/useVirtualHistoryHeights.test.ts+++ b/ui-tui/src/__tests__/useVirtualHistoryHeights.test.ts@@ -37,23 +37,17 @@ describe('ensureVirtualItemHeight', () => {expect(heights.get('d')).toBe(1)})- it.each([Number.NaN, -4, 1_000_000_000])(- 'quarantines invalid cached height %s and reseeds it',- cached => {- const heights = new Map([['bad', cached]])-- expect(ensureVirtualItemHeight(heights, 'bad', 0, 4, () => 7)).toBe(7)- expect(heights.get('bad')).toBe(7)- }- )-- it.each([Number.NaN, -4, 1_000_000_000])(- 'falls back when the estimator returns invalid height %s',- estimate => {- const heights = new Map<string, number>()-- expect(ensureVirtualItemHeight(heights, 'bad', 0, 4, () => estimate)).toBe(4)- expect(heights.get('bad')).toBe(4)- }- )+ it.each([Number.NaN, -4, 1_000_000_000])('quarantines invalid cached height %s and reseeds it', cached => {+ const heights = new Map([['bad', cached]])++ expect(ensureVirtualItemHeight(heights, 'bad', 0, 4, () => 7)).toBe(7)+ expect(heights.get('bad')).toBe(7)+ })++ it.each([Number.NaN, -4, 1_000_000_000])('falls back when the estimator returns invalid height %s', estimate => {+ const heights = new Map<string, number>()++ expect(ensureVirtualItemHeight(heights, 'bad', 0, 4, () => estimate)).toBe(4)+ expect(heights.get('bad')).toBe(4)+ })})diff --git a/ui-tui/src/__tests__/widgetGridComponent.test.tsx b/ui-tui/src/__tests__/widgetGridComponent.test.tsxindex c9cd61e57dc..5ee02e1b15c 100644--- a/ui-tui/src/__tests__/widgetGridComponent.test.tsx+++ b/ui-tui/src/__tests__/widgetGridComponent.test.tsx@@ -126,5 +126,4 @@ describe('GridStreamsDemo', () => {it('keeps the panel count in lockstep with the input handler focus wrap', () => {expect(STREAM_DEFS.length).toBe(GRID_STREAM_COUNT)})-})diff --git a/ui-tui/src/lib/liveProgress.test.ts b/ui-tui/src/lib/liveProgress.test.tsindex f5f1abc2fee..2f15428db24 100644--- a/ui-tui/src/lib/liveProgress.test.ts+++ b/ui-tui/src/lib/liveProgress.test.ts@@ -24,7 +24,6 @@ describe('tool shelf helpers', () => {expect(canHoldToolShelf({ kind: 'trail', role: 'system', text: '', tools: ['one ✓'] })).toBe(true)expect(canHoldToolShelf({ role: 'assistant', text: 'done' })).toBe(false)})-})describe('appendToolShelfMessage', () => {diff --git a/ui-tui/src/lib/text.test.ts b/ui-tui/src/lib/text.test.tsindex 19f6ef143a1..cb47e269e32 100644--- a/ui-tui/src/lib/text.test.ts+++ b/ui-tui/src/lib/text.test.ts@@ -48,7 +48,6 @@ describe('formatAbandonedClarify', () => {expect(out.split('\n')[0]).toBe('ask trailing space')})-})describe('formatAbandonedClarifyBatch', () => {