Skip to content

install refuses OpenCode agent files written by an earlier release, and fails the whole run #2240

Description

@dergachoff

Problem

Upgrading a 0.9.1-rc.1-era setup to v0.11.0, install -y refuses three OpenCode agent files that cbm's own installer wrote, and the refusal fails the entire install.

Evidence

error: agent_config agent=OpenCode op=agent_install path=~/.config/opencode/agents/codebase-memory-scout.md (target: regular file, 1729 bytes)
error: one or more agent configurations failed; the published/current executable was kept, and PATH/index cleanup was not attempted

All three files are dated 2026-07-31 21:13 — written by the rc.1 installer, never touched by me. Moving them aside and rerunning install -y --clients=opencode succeeds with zero errors, and the files it then writes differ from the rc.1 ones by exactly two lines:

+  tool_search: allow
+  tool_search_regex: allow

So the renderer changed, the previous rendering isn't registered anywhere, and cbm's own output now reads as a foreign file.

Expected fix

Register the pre-0.11.0 OpenCode agent rendering as a known released shape so upgrades migrate it, the way #1408 did for the rc.1 Codex profiles. The escalation is worth a second look too — #1656 fixed exactly that for Hermes, and here one refused file skips PATH and index cleanup for the whole run.

v0.11.0, macOS arm64.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeditor/integrationEditor compatibility and CLI integrationpriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.ux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions