docs: OpenCode plugin setup step and managed service env #3
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/plugin-setup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
### 4. OpenCode plugin (optional, any deployment)setup step. The Setupflow (
local/hub/client) registered the read MCP server but never the plugin, and saidnothing about how the background service gets its environment.
opencode service set env …followed byopencode service start— the managed serviceconfiguration every service start reuses — instead of a shell export the detached service
never sees.
with the same
opencode service set envmechanism.Why
OpenCode's shared background service starts once with the environment of the first client
invocation and keeps it. A variable exported for a later
opencode runnever reaches the plugin,which then loads and registers nothing (no
REFLECT_HUB_URL) — the most likely "it never injects"cause.
Notes
--standalone/opencode servedo not read the managed configuration; the text says so.