mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
core: fix tool part type assertion in session metadata update
This commit is contained in:
parent
9790277a59
commit
163d777b9a
1 changed files with 2 additions and 2 deletions
|
|
@ -382,14 +382,14 @@ export namespace SessionPrompt {
|
|||
sessionID: sessionID,
|
||||
abort,
|
||||
async metadata(input) {
|
||||
;(await Session.updatePart({
|
||||
await Session.updatePart({
|
||||
...part,
|
||||
type: "tool",
|
||||
state: {
|
||||
...part.state,
|
||||
...input,
|
||||
},
|
||||
})) as MessageV2.ToolPart
|
||||
} satisfies MessageV2.ToolPart)
|
||||
},
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue