mirror of
https://github.com/stablyai/orca.git
synced 2026-09-28 08:02:43 +00:00
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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user