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
opencode upgrade doesnt move to newest version #5375
I tried upgrading opencode with the opencode upgrade command, the first time, it took me to a new version that was not the latest. I had to run it again before it went to the latest verison
npm registry has 5-min CDN caching (cache-control: max-age=300), which could cause stale version fetches. Would adding a Cache-Control: no-cache header for explicit opencode upgrade commands be welcome?
@edlsh is that actually the issue here? i did notice this weirdness if I downgrade to sufficiently old version then upgrade it will do .142 for some reason, then u can upgrade again from there, this is way past a 5 min cache
Homebrew has the same issue with brew, but for brew, it seems that HOMEBREW_NO_AUTO_UPDATE: "1" in installation/index.ts is blocking update.
Another issue is that opencode upgrade v1.1.xx also doesn't seem to work for brew.
Edit: Also how do I test this in development? ./packages/opencode/dist/opencode-.../bin/opencode upgrade always detects it was downloaded with bun. I'm not sure how to test with brew
I was running into this on Linux as well. The root cause was that the old version of opencode was installed in ~/.local/bin, and opencode upgrade was installing the new version in ~/.opencode/bin. Manually deleting the old version fixed the issue.
Activity
github-actions commentedon Dec 11, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Dec 13, 2025
github has had issues lately so i imagine it was something on their end?
edlsh commentedon Dec 27, 2025
npm registry has 5-min CDN caching (
cache-control: max-age=300), which could cause stale version fetches. Would adding aCache-Control: no-cacheheader for explicitopencode upgradecommands be welcome?rekram1-node commentedon Dec 27, 2025
@edlsh is that actually the issue here? i did notice this weirdness if I downgrade to sufficiently old version then upgrade it will do .142 for some reason, then u can upgrade again from there, this is way past a 5 min cache
lmBored commentedon Jan 14, 2026
Homebrew has the same issue with brew, but for brew, it seems that
HOMEBREW_NO_AUTO_UPDATE: "1"ininstallation/index.tsis blocking update.Another issue is that
opencode upgrade v1.1.xxalso doesn't seem to work for brew.Edit: Also how do I test this in development?
./packages/opencode/dist/opencode-.../bin/opencode upgradealways detects it was downloaded with bun. I'm not sure how to test with brewrekram1-node commentedon Jan 14, 2026
Wdym not working for brew?
lmBored commentedon Jan 14, 2026
Oops, I was missing context, this is my logs:
Perhaps because
brew upgradeis not upgrading from the correct tap -anomalyco/tap?jd-santos commentedon Jan 18, 2026
Is there an answer or workaround here? I'm not able to update beyond 1.1.20 with
brew upgradeoropencode upgrade.lmBored commentedon Jan 19, 2026
Did you tap the correct tap? It should look be this tap:
anomalyco/tap/opencode. Andbrew upgrade opencodeworks just fine for meritesh24 commentedon Jan 22, 2026
Unable to update from 1.1.20 to 1.1.32
ritesh24 commentedon Jan 24, 2026
I tried this command in terminal and it worked. May help..
`brew update
TAP_DIR="$(brew --repo anomalyco/tap)"
git -C "$TAP_DIR" pull --rebase
brew upgrade anomalyco/tap/opencode
hash -r
opencode --version`
6 remaining items
fix: resolve homebrew upgrade requiring multiple runs (anomalyco#5375) (
fix: resolve homebrew upgrade requiring multiple runs (anomalyco#5375) (
fix: resolve homebrew upgrade requiring multiple runs (anomalyco#5375) (
NeilsC commentedon Apr 6, 2026
I was running into this on Linux as well. The root cause was that the old version of
opencodewas installed in~/.local/bin, andopencode upgradewas installing the new version in~/.opencode/bin. Manually deleting the old version fixed the issue.fix: resolve homebrew upgrade requiring multiple runs (anomalyco#5375) (
patriciomg commentedon Jun 12, 2026
I had the same problem. The solution was running
brew upgrade opencodeby running:
opencode upgradeoropencode upgrade --method brewdid not work.fix: resolve homebrew upgrade requiring multiple runs (anomalyco#5375) (
fix: resolve homebrew upgrade requiring multiple runs (#5375) (#10118)