Skip to content

The clone-and-run fix

Choose a tag to compare

@ali5ter ali5ter released this 20 Nov 19:35
· 17 commits to main since this release

The clone-and-run fix

The local development loader (.opencode/plugins/opencode-what-context/) was tracked in the
public repo, so anyone who cloned the repo and started OpenCode inside the checkout hit a
TUI plugin failure: the loader re-exports src/tui.tsx, which imports @opencode/client, and
a fresh clone — or a checkout whose node_modules predates v0.2.0 — has no such package
(reported 2026-11-20 from the iMac).

  • The loader is no longer tracked; .opencode/ is gitignored in full.
  • scripts/dev-link.sh (re)creates it from the tracked template in dev/plugins/; the README
    gains a Development section.
  • The npm package code is unchanged; 0.2.2 ships the Development documentation and keeps
    latest in lockstep with the tag.

An existing clone is healed by git pull alone — git removes the now-untracked loader, so
the failure goes away without any further step. Run scripts/dev-link.sh and npm install
only when developing the plugin locally.