Skip to content

An open-source, faster Devin alternative

TypeScript

fix(web): default agent model must be provider-prefixed (anthropic/…)

Igor Zalutski09220b06aa89
diff --git a/web/src/api/mock.ts b/web/src/api/mock.ts
index 20fbc359..0ad38a24 100644
--- a/web/src/api/mock.ts
+++ b/web/src/api/mock.ts
@@ -376,7 +376,7 @@ const v3agents = [
id: 'agt_3kf9xz',
name: 'PR Reviewer',
prompt_hash: 'sha256:9c1a4f',
- model: 'claude-opus-4-8',
+ model: 'anthropic/claude-opus-4-8',
runtime: 'claude',
credential_id: 'cred_anth_1',
revision: 3,
@@ -386,7 +386,7 @@ const v3agents = [
id: 'agt_7mq2aa',
name: 'Docs Writer',
prompt_hash: 'sha256:42bd07',
- model: 'claude-sonnet-4-6',
+ model: 'anthropic/claude-sonnet-4-6',
runtime: 'claude',
credential_id: null,
revision: 1,
diff --git a/web/src/pages/Agents.tsx b/web/src/pages/Agents.tsx
index b8662ad4..1cd45d3f 100644
--- a/web/src/pages/Agents.tsx
+++ b/web/src/pages/Agents.tsx
@@ -18,7 +18,8 @@ import { Field, Input, Textarea } from '@/components/form'
import { EmptyState } from '@/components/empty-state'
import { ResourceTable, type Column } from '@/components/resource-table'
-const DEFAULT_MODEL = 'claude-opus-4-8'
+// /v3 requires a provider-prefixed model; runtime "claude" ⇒ anthropic/…
+const DEFAULT_MODEL = 'anthropic/claude-opus-4-8'
export default function Agents() {
const queryClient = useQueryClient()