playbooks/roles/vhosts/acp_server_opencode/tasks
Haitao Pan 837e918c8e fix(acp_server_opencode): detect opencode CLI at deploy time (portable across Debian/Ubuntu/macOS)
Stop assuming a fixed opencode path. Probe the real binary with 'command -v'
using the role PATH, then feed the resolved path to both the systemd unit and
the launchd plist (plist now also passes -opencode-bin). Falls back to the
OS-aware default when opencode is not yet installed.

Also remove the dead acp-bridge.service.j2 template: it was not deployed by any
task and referenced two undefined vars (acp_opencode_bridge_disabled_binary_path,
acp_opencode_bridge_opencode_binary_path) — a hardcoding landmine.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 15:31:45 +08:00
..
config.yml fix(acp_server_opencode): detect opencode CLI at deploy time (portable across Debian/Ubuntu/macOS) 2026-06-28 15:31:45 +08:00
install.yml fix(macos): gate opencode Caddy conf-dir on manage_caddy 2026-06-21 10:04:52 +00:00
macos.yml refactor(macOS): overhaul handlers to support dynamic OS routing via listen feature 2026-06-21 18:52:37 +08:00
main.yml fix: remove stale repo + depth=1 for clone; macOS browser/npm/agent_skills/role defaults compatibility 2026-06-19 11:37:33 +08:00
validate.yml fix(acp_server_opencode): service PATH + bin var + surface adapter crash in validate (#21) 2026-06-28 15:25:32 +08:00