diff --git a/packages/opencode/src/session/summary.ts b/packages/opencode/src/session/summary.ts index 12b040f6b..15178673e 100644 --- a/packages/opencode/src/session/summary.ts +++ b/packages/opencode/src/session/summary.ts @@ -81,10 +81,15 @@ export namespace SessionSummary { ), { role: "user" as const, - content: textPart?.text ?? "", + content: ` + The following is the text to summarize: + + ${textPart?.text ?? ""} + + `, }, ], - headers:small.info.headers, + headers: small.info.headers, model: small.language, }) log.info("title", { title: result.text }) @@ -117,7 +122,7 @@ export namespace SessionSummary { `, }, ], - headers: small.info.headers + headers: small.info.headers, }) summary = result.text }