Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: cover unknown composer provider route

Steven Enamakel74ab8a54a51d
diff --git a/app/scripts/e2e-run-all-flows.sh b/app/scripts/e2e-run-all-flows.sh
index bdc7f06ef4..10a66ff82f 100755
--- a/app/scripts/e2e-run-all-flows.sh
+++ b/app/scripts/e2e-run-all-flows.sh
@@ -333,7 +333,7 @@ if should_run_suite "providers"; then
run "test/e2e/specs/gmail-flow.spec.ts" "gmail" "providers"
run "test/e2e/specs/accounts-provider-modal.spec.ts" "accounts-providers" "providers"
run "test/e2e/specs/credential-channels-flow.spec.ts" "credential-channels" "providers"
- run "test/e2e/specs/chip-tabs-keyboard.spec.ts" "chip-tabs-keyboard" "providers"
+ run "test/e2e/specs/chip-tabs-keyboard.spec.ts" "chip-tabs-keyboard" "settings"
_mini_summary "providers"
fi
diff --git a/app/src/features/conversations/Conversations.processSourceCommand.test.tsx b/app/src/features/conversations/Conversations.processSourceCommand.test.tsx
index 573dbb2268..5b8bdcf2c1 100644
--- a/app/src/features/conversations/Conversations.processSourceCommand.test.tsx
+++ b/app/src/features/conversations/Conversations.processSourceCommand.test.tsx
@@ -92,6 +92,13 @@ vi.mock('../../components/settings/panels/ai/ProviderModelPickerDialog', () => (
}>
Pick Hugging Face model
</button>
+ <button
+ type="button"
+ onClick={() =>
+ onSelect({ source: { kind: 'cloud', providerSlug: 'unknown-provider' }, model: 'model' })
+ }>
+ Pick unknown provider model
+ </button>
<button
type="button"
onClick={() => onSelect({ source: { kind: 'managed' }, model: 'openrouter/author/model' })}>
@@ -694,6 +701,7 @@ describe('composer model routing', () => {
it.each([
['managed', 'openrouter/author/model'],
['local', 'ollama:qwen3:4b-instruct'],
+ ['unknown provider', 'unknown-provider:model'],
] as const)('serializes the %s picker route at the core boundary', async (route, model) => {
mockChatSend.mockClear();
await useRealChatSend();