From 91fa5dbfb6bd3bcea2cb233bb8ff073b62add7d5 Mon Sep 17 00:00:00 2001 From: Merge Sim Date: Tue, 8 Sep 2026 22:50:11 -0700 Subject: [PATCH] test(native-chat): stop asserting the deleted draft feasibility input The routing-authority test expected the shared predicate to receive isDraftPrompt; delivery mode is prompt metadata and never reaches feasibility now, so assert its absence instead. --- .../structured-native-chat-routing-authority.unit.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/e2e/structured-native-chat-routing-authority.unit.test.ts b/tests/e2e/structured-native-chat-routing-authority.unit.test.ts index 16be06deb4a..9dda8cbe6c7 100644 --- a/tests/e2e/structured-native-chat-routing-authority.unit.test.ts +++ b/tests/e2e/structured-native-chat-routing-authority.unit.test.ts @@ -42,7 +42,6 @@ const placements = [ const blockers: StructuredNativeChatBlocker[] = [ 'reused-terminal', 'agent-without-structured-session', - 'draft-prompt', 'floating-workspace', 'tui-launch-customization', 'remote-execution-host', @@ -108,11 +107,14 @@ describe('shared feasibility owns every caller decision', () => { expect.objectContaining({ agent, executionHostId, - isDraftPrompt: promptDelivery === 'draft', requiresTuiLaunchCustomization: true, workspaceKind: 'folder' }) ) + // Why: delivery mode is prompt metadata, never a feasibility input. + expect(predicate).toHaveBeenLastCalledWith( + expect.not.objectContaining({ isDraftPrompt: expect.anything() }) + ) for (const blocker of blockers) { predicate.mockReturnValue({ supported: false, blocker }) expect(resolveAgentLaunchRoute(input)).not.toBe('structured-native-chat')