fix(conflict): resolve OpenCode vs. extension conflict by sanitizing env

This commit is contained in:
2026-04-20 13:06:00 +02:00
parent a7f07dbeef
commit 558b6a9953
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "ai-commit-ext", "name": "ai-commit-ext",
"displayName": "AI Commit Ext", "displayName": "AI Commit Ext",
"description": "Generate commit messages using OpenCode AI", "description": "Generate commit messages using OpenCode AI",
"version": "1.2.0", "version": "1.2.1",
"publisher": "local", "publisher": "local",
"engines": { "engines": {
"vscode": "^1.110.0" "vscode": "^1.110.0"
+10
View File
@@ -93,6 +93,16 @@ Generate a concise Conventional Commit message for these changes:`;
stdio: ["pipe", "pipe", "pipe"], stdio: ["pipe", "pipe", "pipe"],
shell: false, shell: false,
cwd: repoRoot || undefined, cwd: repoRoot || undefined,
env: {
...process.env,
OPENCODE_SERVER_PASSWORD: undefined,
OPENCODE_SERVER_USERNAME: undefined,
OPENCODE_CLIENT: undefined,
OPENCODE_HOST: undefined,
OPENCODE_PORT: undefined,
OPENCODE_SKIP_START: undefined,
OPENCODE_BINARY: undefined,
},
}); });
let stdout = ""; let stdout = "";