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

This commit is contained in:
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

View File

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