The open source coding agent.
TypeScript
fix: title generation for certain providers (#1159)
Aiden Cline03de0c406d55
diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.tsindex a993b1c940e..5f7bf353af1 100644--- a/packages/opencode/src/session/index.ts+++ b/packages/opencode/src/session/index.ts@@ -540,7 +540,7 @@ export namespace Session {if (msgs.length === 0 && !session.parentID) {const small = (await Provider.getSmallModel(input.providerID)) ?? modelgenerateText({- maxOutputTokens: input.providerID === "google" ? 1024 : 20,+ maxOutputTokens: small.info.reasoning ? 1024 : 20,providerOptions: {[input.providerID]: small.info.options,},