The open source coding agent.
TypeScript
sync
Dax Raad299a74061a46
diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.tsindex 4079c971e33..53a253cdc5c 100644--- a/packages/opencode/src/config/config.ts+++ b/packages/opencode/src/config/config.ts@@ -57,6 +57,7 @@ export namespace Config {}).optional(),mcp: z.record(z.string(), Mcp).optional(),+ models: z.record(z.string(), Provider.Model.array()).optional(),}).strict()diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.tsindex b33993e1c9a..0d3990814cc 100644--- a/packages/opencode/src/session/index.ts+++ b/packages/opencode/src/session/index.ts@@ -239,17 +239,18 @@ export namespace Session {},{type: "text",- text: `Here is some useful information about the environment you are running in:-<env>-Working directory: ${app.path.cwd}-Is directory a git repo: ${app.git ? "yes" : "no"}-Platform: ${process.platform}-Today's date: ${new Date().toISOString()}-</env>-<project>-${app.git ? await ListTool.execute({ path: app.path.cwd }, { sessionID: input.sessionID }).then((x) => x.output) : ""}-</project>- `,+ text: [+ `Here is some useful information about the environment you are running in:`,+ `<env>`,+ `Working directory: ${app.path.cwd}`,+ `Is directory a git repo: ${app.git ? "yes" : "no"}`,+ `Platform: ${process.platform}`,+ `Today's date: ${new Date().toISOString()}`,+ `</env>`,+ `<project>`,+ `${app.git ? await ListTool.execute({ path: app.path.cwd }, { sessionID: input.sessionID }).then((x) => x.output) : ""}`,+ `</project>`,+ ].join("\n"),},],metadata: {