Files
PaperClipAI/packages/adapters/opencode-local
Devin FoleyandPaperclip 586c6aa091 Fix in-place SSH execution across supported Cloud harnesses
Use the shared remote execution capability registry for durable SSH task
admission. Keep controller workspace checks and transfers off authoritative
remote paths across all eight SSH-capable adapters. Preserve connection
identity in their session codecs, stabilize managed ACP skill-home identity,
and stage Grok project assets through the SSH target.

Expand the real SSH heartbeat matrix to every direct harness, including
compatible managed accounts, task-file persistence, and follow-up turns.
Verify previous-release conversation handling, runtime cleanup, local and
copied workspaces, and native Runner contracts.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-11-17 15:00:38 -08:00
..
2026-03-12 13:09:22 -05:00

OpenCode local adapter

Runtime configuration

prepareOpenCodeRuntimeConfig stages an isolated OpenCode configuration directory on the host for both local and remote execution targets. It copies the operator configuration and applies the runtime provider and permission settings. Its returned XDG_CONFIG_HOME points to that host directory.

For remote execution, execute and testEnvironment pass the staged directory to prepareAdapterExecutionTargetRuntime as the xdgConfig asset. They replace XDG_CONFIG_HOME with the asset's remote destination before running OpenCode. The helper's cleanup function removes the host staging directory.