Skip to content

Commit 163d777

Browse files
committed
core: fix tool part type assertion in session metadata update
1 parent 9790277 commit 163d777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/opencode/src/session/prompt.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,14 +382,14 @@ export namespace SessionPrompt {
382382
sessionID: sessionID,
383383
abort,
384384
async metadata(input) {
385-
;(await Session.updatePart({
385+
await Session.updatePart({
386386
...part,
387387
type: "tool",
388388
state: {
389389
...part.state,
390390
...input,
391391
},
392-
})) as MessageV2.ToolPart
392+
} satisfies MessageV2.ToolPart)
393393
},
394394
},
395395
)

0 commit comments

Comments
 (0)