You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
openclaw ACP adapter: load the standing-server credential — gateway launch wires no OPENCODE_SERVER_PASSWORD (#3997) #4615
In the configured OpenClaw gateway, the ACP adapter (bin/opencode-acp-adapter.mjs) only authenticates if OPENCODE_SERVER_PASSWORD happens to be inherited, but home/openclaw/default.nix neither supplies that variable nor installs a wrapper to load it. Codex (P1, PR #3997):
The standing server requires the password stored in ~/.local/state/opencode/service-prod.json: bin/openchamber-start.sh loads it explicitly, as does the dispatch client. Unlike the previous private-server ACP command, this adapter therefore sends unauthenticated session and event requests in the declared gateway environment, preventing session creation even after the API contract is corrected. Read the standing server's credential at runtime or explicitly wire it into the adapter's launch environment.
Still live on current main (verified by raw read 2026-11-02): bin/opencode-acp-adapter.mjs:65 reads the password only from process.env.OPENCODE_SERVER_PASSWORD; home/openclaw/default.nix (lines 59 and 442) launches the adapter with a bare command and no OPENCODE_SERVER_PASSWORD wiring and no reference to service-prod.json.
Acceptance criteria
The adapter, as launched by the OpenClaw gateway config in home/openclaw/default.nix, authenticates to the standing server — either by loading the credential from ~/.local/state/opencode/service-prod.json at runtime (as bin/openchamber-start.sh and the dispatch client do) or by explicit environment wiring in the launch definition.
Verified against the gateway launch path, not only a hand-exported shell environment.
Or the finding is resolved by a documented decision on this issue.
Task: Triage the validated finding: adapter never loads the standing-server credential and the gateway launch in home/openclaw/default.nix wires no OPENCODE_SERVER_PASSWORD, so gateway requests are unauthenticated (thread unresolved, no reply, no post-comment fix commit, PR merged as-is, still live on current main)
Expectation: effort s — queue worker verifies against current main, then fixes or documents a decision
Routing decision: confirmed actionable, no Drew decision. Enqueued bounded implementation task 6521 (repo-health:v1:fix:developing-today/code:issue:4615) to load the runtime credential or safely wire launch env, and exercise the configured gateway path with a synthetic fixture. No real credential was read or copied; packet/test requirements prohibit logging or storing real values or baking them into Nix.
Expectation: issue remains open until authenticated gateway-path verification lands.
Agent: queue worker (repo-worker-code), lane code-i
Session / ID: task 6521
Found via: queue claim
Task: Parked 20m on CI. PR fix(openclaw): load standing-server credential in ACP adapter (#4615) #4655 opened at head 70bbea5: the adapter runtime-loads the standing-server credential (env → OPENCODE_AUTH_FILE → default ~/.local/state/opencode/service-prod.json), with hermetic regression tests — node test suite 8/8 pass on the laptop; Codex review completed with no findings. The basic check is still pending after a 5-minute poll.
Resumed from the prior park on PR #4655 (head 70bbea5): re-verified fresh this shift — laptop node --test bin/opencode-acp-adapter.test.mjs 8/8 pass at that head (including the new gateway-launch-path, auth-file precedence, and malformed-file tests, all with synthetic fixtures; no credential value read or printed), Codex review completed on 70bbea5 with no findings, diff matches the packet intent (runtime-load of ~/.local/state/opencode/service-prod.json, env var takes precedence, nothing baked into tracked config). The sole Actions check (metered-provider guard) remained QUEUED in the repo-wide Actions stall, so the merge proceeded on the verified evidence per the standing merge authority. PR #4655 MERGED (merge commit 16e8e34); issue #4615 closed by the merge.
Activity
dezren39 commentedon Nov 2, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 2, 2026
🤖 Agent note · triaged — CONFIRMED; scoped fix routed
bin/opencode-acp-adapter.mjsauthHeaders reads onlyprocess.env.OPENCODE_SERVER_PASSWORD; both adapter launch sites inhome/openclaw/default.nixomit it and do not load the runtime service-prod credential. Existing consumersbin/openchamber-start.shand the dispatch client demonstrate runtime loading; no open fix PR for openclaw ACP adapter: load the standing-server credential — gateway launch wires no OPENCODE_SERVER_PASSWORD (#3997) #4615.repo-health:v1:fix:developing-today/code:issue:4615) to load the runtime credential or safely wire launch env, and exercise the configured gateway path with a synthetic fixture. No real credential was read or copied; packet/test requirements prohibit logging or storing real values or baking them into Nix.dezren39 commentedon Nov 2, 2026
agent-note:v1
event: already_done
task: 6523 (repo-health-code-pilot; worker repo-worker-code; OpenChamber scheduled lane 02cafe76-eafd-4d0b-aaa6-2b7a737d68dc)
result: This duplicate triage was already completed by task 6517. Fresh state: issue #4615 remains OPEN/status:triaged; task 6517 is done with confirmed verdict; scoped fix task 6521 is queued. No additional code or duplicate fix task created.
1 remaining item
dezren39 commentedon Nov 2, 2026
🤖 Agent note · parked
Merge pull request #4655 from developing-today/queue/6521-4615-opencl…
dezren39 commentedon Nov 3, 2026
🤖 Agent note · done
Resumed from the prior park on PR #4655 (head 70bbea5): re-verified fresh this shift — laptop
node --test bin/opencode-acp-adapter.test.mjs8/8 pass at that head (including the new gateway-launch-path, auth-file precedence, and malformed-file tests, all with synthetic fixtures; no credential value read or printed), Codex review completed on 70bbea5 with no findings, diff matches the packet intent (runtime-load of~/.local/state/opencode/service-prod.json, env var takes precedence, nothing baked into tracked config). The sole Actions check (metered-provider guard) remained QUEUED in the repo-wide Actions stall, so the merge proceeded on the verified evidence per the standing merge authority. PR #4655 MERGED (merge commit 16e8e34); issue #4615 closed by the merge.