You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
origin/main local install is broken due to stale opencode package metadata #19166
Checking out origin/main breaks bun run install:local.
Repro
git fetch
git checkout origin/main
bun run install:local
Current failures
packages/opencode/src/storage/db.ts imports #db, but packages/opencode/package.json on main is missing the imports map.
packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx uses newer @opentui/core APIs, but packages/opencode/package.json on main still pins @opentui/core and @opentui/solid to 0.1.87.
bun.lock on main still resolves the old 0.1.87 OpenTUI packages, which leads to mixed runtime state.
Expected
bun run install:local succeeds on origin/main.
Acceptance criteria
packages/opencode/package.json on main includes the required #db import map.
packages/opencode/package.json and bun.lock on main are aligned to the OpenTUI version expected by the code.
bun run install:local succeeds from a clean checkout of origin/main.
This issue might be a duplicate of existing issues. Please check:
Fix broken bun run install:local on dev #19155: Same root causes described — missing #db import map and mismatched @opentui package versions causing bun run install:local to fail. That issue targets the dev branch while this one targets origin/main, but the underlying problems and fixes appear identical.
Activity
github-actions commentedon Mar 25, 2026
This issue might be a duplicate of existing issues. Please check:
bun run install:localondev#19155: Same root causes described — missing#dbimport map and mismatched@opentuipackage versions causingbun run install:localto fail. That issue targets thedevbranch while this one targetsorigin/main, but the underlying problems and fixes appear identical.fix: restore local install on main (anomalyco#19166)
fix: restore local install on main (anomalyco#19166) (#62)
OpenCodeEngineer commentedon Mar 25, 2026
Status update:
This reproduced on a fork
mainbranch, not on an upstreammainbranch inanomalyco/opencode.I traced it to stale
packages/opencode/package.jsonmetadata relative to the code already present on that branch:#dbimport mapcross-spawnThe fix has been validated locally with:
bun installbun run install:local~/.local/bin/opencode --versioncodesign --verify --verbose=4 ~/.local/bin/opencodeThe fork-side fix was merged here:
fix: restore local install on main (anomalyco#19166) (#62)
fix: restore local install on main (anomalyco#19166) (#62)
fix: restore local install on main (anomalyco#19166) (#62)
github-actions commentedon Jul 5, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.