diff --git a/src/main/runtime/agent-session/launch/structured-agent-availability.test.ts b/src/main/runtime/agent-session/launch/structured-agent-availability.test.ts deleted file mode 100644 index a1b9dfdb66d..00000000000 --- a/src/main/runtime/agent-session/launch/structured-agent-availability.test.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { delimiter } from 'node:path' -import { describe, expect, it, vi } from 'vitest' -import { getDefaultSettings } from '../../../../shared/orca-profiles/constants' -import { structuredAgentChatProgramNeedsInstall } from './structured-agent-availability' - -const pathEntries = vi.hoisted((): { current: string[] } => ({ current: [] })) - -vi.mock('./structured-agent-launch-support', () => ({ - resolveHostStructuredAgentLaunchEnvironment: async () => ({}) -})) -vi.mock('../installation/structured-agent-runtime-metadata', () => ({ - structuredAgentRuntimeMetadata: (agent: string) => ({ - definition: { agent }, - supportsLocation: () => true, - chatProgram: { - resolve: () => ({ command: agent, env: { PATH: pathEntries.current.join(delimiter) } }), - installable: () => true - } - }) -})) - -const runtime = { requireStore: () => ({ getSettings: () => getDefaultSettings('/home/test') }) } - -describe('structuredAgentChatProgramNeedsInstall', () => { - it('offers the install when PATH only adds an unexpanded home entry', async () => { - pathEntries.current = ['/usr/bin', '~/.dotnet/tools'] - await expect(structuredAgentChatProgramNeedsInstall('codex', runtime)).resolves.toBe(true) - }) -}) diff --git a/src/main/workspaces/creation/worktree-create-candidates.test.ts b/src/main/workspaces/creation/worktree-create-candidates.test.ts index 2ff9bd57b8e..5104797b629 100644 --- a/src/main/workspaces/creation/worktree-create-candidates.test.ts +++ b/src/main/workspaces/creation/worktree-create-candidates.test.ts @@ -3,13 +3,6 @@ import { getGeneratedWorktreeCreateCandidate } from './worktree-create-candidate import { isGeneratedWorktreeCreateName } from '../../../shared/new-workspace/worktree-create-retry-policy' describe('generated worktree create candidates', () => { - it('advances canonical tiers instead of nesting collision suffixes', () => { - expect(getGeneratedWorktreeCreateCandidate('nautilus-2', 1)).toBe('nautilus-2') - expect(getGeneratedWorktreeCreateCandidate('nautilus-2', 2)).toBe('nautilus-3') - expect(getGeneratedWorktreeCreateCandidate('nautilus-2', 99)).toBe('nautilus-100') - expect(getGeneratedWorktreeCreateCandidate('nautilus', 1, 100)).toBe('nautilus-101') - }) - it('canonicalizes legacy nested generated suffixes', () => { expect(isGeneratedWorktreeCreateName('nautilus')).toBe(true) expect(isGeneratedWorktreeCreateName('nautilus-2')).toBe(true) diff --git a/src/shared/native-chat/native-chat-visual-shell.test.ts b/src/shared/native-chat/native-chat-visual-shell.test.ts index a4a4ada5852..6b10212030b 100644 --- a/src/shared/native-chat/native-chat-visual-shell.test.ts +++ b/src/shared/native-chat/native-chat-visual-shell.test.ts @@ -5,30 +5,11 @@ import { NATIVE_CHAT_VISUAL_PONG_TYPE, NATIVE_CHAT_VISUAL_READER_SCROLL_TYPE, NATIVE_CHAT_VISUAL_SIZE_TYPE, - buildNativeChatVisualDocument, nativeChatVisualThemeCss, readNativeChatVisualFrameMessage, readNativeChatVisualPong } from './native-chat-visual-shell' -const theme = { - colorScheme: 'dark' as const, - tokens: { '--background': 'oklch(0.2 0 0)', '--chart-1': '#123456' } -} - -describe('buildNativeChatVisualDocument', () => { - const html = '
hi
' - const document = buildNativeChatVisualDocument({ html, channel: 'abc123', theme }) - - it('puts the CSP before anything the visual wrote', () => { - const cspAt = document.indexOf('http-equiv="Content-Security-Policy"') - expect(cspAt).toBeGreaterThan(0) - expect(cspAt).toBeLessThan(document.indexOf('