Change codex acp provider command to automatically install & run (#2890)

This commit is contained in:
Jie Liu
2025-12-27 01:41:20 +08:00
committed by GitHub
parent 476f342fe6
commit a9e9890fc6
2 changed files with 4 additions and 2 deletions

View File

@@ -1239,7 +1239,8 @@ ACP providers are configured in the `acp_providers` section of your configuratio
args = { "acp" },
},
["codex"] = {
command = "codex-acp",
command = "npx",
args = { "@zed-industries/codex-acp" },
env = {
NODE_NO_WARNINGS = "1",
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY"),

View File

@@ -268,7 +268,8 @@ M._defaults = {
args = { "acp" },
},
["codex"] = {
command = "codex-acp",
command = "npx",
args = { "-y", "@zed-industries/codex-acp" },
env = {
NODE_NO_WARNINGS = "1",
HOME = os.getenv("HOME"),