fix: restore chat.message plugin hook (#2619)

This commit is contained in:
Stephen Murray
2025-09-15 22:44:07 -04:00
committed by GitHub
parent 51c647ca89
commit 52fb571739

View File

@@ -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)