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.
This commit is contained in:
Merge Sim
2026-09-08 22:50:11 -07:00
parent ec6e66562d
commit 91fa5dbfb6
@@ -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')