Skip to content

Commit 4752c83

Browse files
feat: pass sessionID to chat.system.transform (anomalyco#7718)
1 parent f94ee5c commit 4752c83

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/opencode/src/session/llm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export namespace LLM {
7373

7474
const header = system[0]
7575
const original = clone(system)
76-
await Plugin.trigger("experimental.chat.system.transform", {}, { system })
76+
await Plugin.trigger("experimental.chat.system.transform", { sessionID: input.sessionID }, { system })
7777
if (system.length === 0) {
7878
system.push(...original)
7979
}

packages/plugin/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export interface Hooks {
195195
},
196196
) => Promise<void>
197197
"experimental.chat.system.transform"?: (
198-
input: {},
198+
input: { sessionID: string },
199199
output: {
200200
system: string[]
201201
},

0 commit comments

Comments
 (0)