GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: pass sessionID to chat.system.transform (#7718) · coty/opencode@4752c83

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • opencode/src/session
      • llm.ts
    • plugin/src
      • index.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/src/session/llm.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/src/session/llm.ts
+1-1Lines 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
}
Collapse file

‎packages/plugin/src/index.ts‎

Copy file name to clipboardExpand all lines: packages/plugin/src/index.ts
+1-1Lines 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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.