formulahendry / formulahendry/wechat-acp
--agent opencode:使用 OPENCODE_SERVER_PASSWORD 环境变量设置密码后出现error
- Dominant language
- TypeScript
- Stars
- 826
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Description
如题,在win10环境变量中设置opencode密码后再运行wechat-acp会出现以下error
如果环境变量中删除密码则error解决。
不知道在保留OPENCODE_SERVER_PASSWORD的同时是否可以顺利使用该工具。感谢开源。
PS G:\3.Python\project\6.wechat-ACP\1_0324test> npx wechat-acp --agent opencode
[02:08:27] Loaded saved token (Bot: xxxx@im.bot, saved at 2026-03-24T05:09:08.026Z)
[02:08:27] Use --login to force re-login
[02:08:27] Starting message polling...
[02:08:27] Resuming from previous sync buf (104 bytes)
[02:09:06] Message from o9cq80wYkAICEEEXIIOpRMaAsm-8@im.wechat: 你是否可以调
用skill?
[02:09:06] Creating new session for o9cq80wYkAICEEEXIIOpRMaAsm-8@im.wechat
[02:09:07] [o9cq80wYkAICEEEXIIOpRMaAsm-8@im.wechat] Spawning agent: npx opencode-ai acp (cwd: G:\3.Python\project\6.wechat-ACP\1_0324test, shell=true)
[02:09:07] [o9cq80wYkAICEEEXIIOpRMaAsm-8@im.wechat] Initializing ACP connection...
(node:36184) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
(Use `node --trace-deprecation ...` to show where the warning was created)
[02:09:21] [o9cq80wYkAICEEEXIIOpRMaAsm-8@im.wechat] ACP initialized (protocol v1)
[02:09:21] [o9cq80wYkAICEEEXIIOpRMaAsm-8@im.wechat] Creating ACP session...
Error handling request {
jsonrpc: "2.0",
id: 1,
method: "session/new",
params: {
cwd: "G:\\3.Python\\project\\6.wechat-ACP\\1_0324test",
mcpServers: [],
},
} {
code: -32603,
message: "Internal error",
data: {},
}
[02:09:21] Failed to enqueue message from o9cq80wYkAICEEEXIIOpRMaAsm-8@im.wechat: [object Object]
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.