mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-25 11:44:22 +01:00
fix: restore chat.message plugin hook (#2619)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user