fix(provider): preserve model ids on provider update

This commit is contained in:
yiling
2026-07-22 16:27:58 +08:00
parent b1e77db6d0
commit 43dd53a30d
3 changed files with 86 additions and 11 deletions
+6 -1
View File
@@ -1,5 +1,10 @@
import { describe, it, expect, vi } from 'vitest'
import { formatSkillsForPrompt, createAgentSession, getModelFromDb, type DbProviderInfo } from './index'
import {
formatSkillsForPrompt,
createAgentSession,
getModelFromDb,
type DbProviderInfo,
} from './index'
import { createSandboxedBashTool } from './tools/sandboxed-bash'
import { SandboxManager, type SandboxAskCallback } from '@anthropic-ai/sandbox-runtime'
import { prisma } from '@shumai/db'