fix(opencode): teach Kit's test what an ID is (#17745)

pull/17711/head^2
Luke Parker 2026-03-16 18:08:27 +10:00 committed by GitHub
parent c2ca1494e5
commit 59c530cc6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -368,8 +368,8 @@ describe("session.llm.stream", () => {
await Instance.provide({ await Instance.provide({
directory: tmp.path, directory: tmp.path,
fn: async () => { fn: async () => {
const resolved = await Provider.getModel(providerID, model.id) const resolved = await Provider.getModel(ProviderID.make(providerID), ModelID.make(model.id))
const sessionID = "session-test-tools" const sessionID = SessionID.make("session-test-tools")
const agent = { const agent = {
name: "test", name: "test",
mode: "primary", mode: "primary",
@ -378,12 +378,12 @@ describe("session.llm.stream", () => {
} satisfies Agent.Info } satisfies Agent.Info
const user = { const user = {
id: "user-tools", id: MessageID.make("user-tools"),
sessionID, sessionID,
role: "user", role: "user",
time: { created: Date.now() }, time: { created: Date.now() },
agent: agent.name, agent: agent.name,
model: { providerID, modelID: resolved.id }, model: { providerID: ProviderID.make(providerID), modelID: resolved.id },
tools: { question: true }, tools: { question: true },
} satisfies MessageV2.User } satisfies MessageV2.User