mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: restore chat.message plugin hook (#2619)
This commit is contained in:
parent
51c647ca89
commit
52fb571739
1 changed files with 9 additions and 0 deletions
|
|
@ -716,6 +716,15 @@ export namespace SessionPrompt {
|
|||
}),
|
||||
).then((x) => x.flat())
|
||||
|
||||
await Plugin.trigger(
|
||||
"chat.message",
|
||||
{},
|
||||
{
|
||||
message: info,
|
||||
parts,
|
||||
},
|
||||
)
|
||||
|
||||
await Session.updateMessage(info)
|
||||
for (const part of parts) {
|
||||
await Session.updatePart(part)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue