This commit is contained in:
Frank 2025-08-27 18:20:13 -04:00
parent a366d45a8c
commit f693dd47ef
3 changed files with 0 additions and 12 deletions

View file

@ -53,10 +53,6 @@ export namespace Opencode {
console.log("Sending message to opencode...")
const { providerID, modelID } = state()
// restore git credentials temporarily to avoid prompt injection
const isGitConfigured = await Git.isConfigured()
if (isGitConfigured) await Git.restore()
const session = await client()
.session.create<true>()
.then((r) => r.data)
@ -75,8 +71,6 @@ export namespace Opencode {
},
})
if (isGitConfigured) await Git.configure()
// @ts-ignore
const match = chat.data.parts.findLast((p) => p.type === "text")
if (!match) throw new Error("Failed to parse the text response")