We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b934c22 commit 5aa4fd0Copy full SHA for 5aa4fd0
2 files changed
packages/opencode/src/session/prompt.ts
@@ -1064,6 +1064,7 @@ export namespace SessionPrompt {
1064
agent: input.agent,
1065
model: input.model,
1066
messageID: input.messageID,
1067
+ variant: input.variant,
1068
},
1069
{
1070
message: info,
packages/plugin/src/index.ts
@@ -154,7 +154,13 @@ export interface Hooks {
154
* Called when a new message is received
155
*/
156
"chat.message"?: (
157
- input: { sessionID: string; agent?: string; model?: { providerID: string; modelID: string }; messageID?: string },
+ input: {
158
+ sessionID: string
159
+ agent?: string
160
+ model?: { providerID: string; modelID: string }
161
+ messageID?: string
162
+ variant?: string
163
+ },
164
output: { message: UserMessage; parts: Part[] },
165
) => Promise<void>
166
/**
0 commit comments