unify model selection

This commit is contained in:
weishu
2026-03-16 18:29:09 +08:00
parent 1f02bb7de1
commit 02c8e12e80
27 changed files with 454 additions and 41 deletions
+3 -1
View File
@@ -21,6 +21,7 @@ export type SessionBootstrapOptions = {
workingDirectory?: string
tag?: string
agentState?: AgentState | null
model?: string
}
export type SessionBootstrapResult = {
@@ -124,7 +125,8 @@ export async function bootstrapSession(options: SessionBootstrapOptions): Promis
const sessionInfo = await api.getOrCreateSession({
tag: sessionTag,
metadata,
state: agentState
state: agentState,
model: options.model
})
const session = api.sessionSyncClient(sessionInfo)