Uh oh!
There was an error while loading. Please reload this page.
fix: resolve 'latest' to actual version when caching plugins - #5292
Merged
rekram1-node merged 1 commit intoDec 9, 2025
Merged
Conversation
rekram1-node
commented
Dec 9, 2025
Collaborator
/review |
Uh oh!
There was an error while loading. Please reload this page.
rekram1-node
commented
Dec 9, 2025
Collaborator
Ignore suggestion, I think this let is valid |
Uh oh!
There was an error while loading. Please reload this page.
shuv1337 added a commit
to Latitudes-Dev/shuvcode
that referenced
this pull request
Dec 10, 2025
* chore: format code * wip(desktop): progress * chore: regen sdk * chore: format code * add project.name/icon * wip(desktop): progress * feat: add color to project * chore: regen sdk * chore: format code * rename bus * rework project loading * fix ci * chore: regen sdk * chore: format code * core: add automatic project icon discovery from favicon/logo files * chore: regen sdk * chore: format code * core: fix project icon update to preserve existing icon properties * chore: regen sdk * chore: format code * ci: fix sdk gen * chore: regen sdk * chore: format code * core: make project updated timestamp optional to support legacy project data * core: fix project creation to include updated timestamp * chore: regen sdk * chore: format code * fix: read when file is svg * chore: regen sdk * chore: format code * test fixes * core: fix project event emission to include updated worktree data * chore: regen sdk * chore: format code * sync * chore: regen sdk * chore: format code * discover logic * chore: regen sdk * chore: format code * fix tests * fix types * chore: regen sdk * chore: format code * format on write * fix: resolve 'latest' to actual version when caching plugins (anomalyco#5292) * ci: fix sdk workflow * wip(desktop): progress * wip(desktop): progress * wip(desktop): progress * wip(desktop): progress * wip(desktop): progress * feat: add Biome LSP support (anomalyco#5290) * wip(desktop): progress * wip(desktop): progress * add OPENCODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT * wip(desktop): progress * wip(desktop): progress * wip(desktop): progress * core: fix project icon update handling to preserve existing icon properties * wip(desktop): progress * wip(desktop): progress * better interleaved thinking support (anomalyco#5298) * fix: add spacer before queued badge * tweak: add OPENCODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS * ignore: rm chalk * Update Nix flake.lock and hashes * ci fix * chore: regen sdk * chore: format code * ci * chore: regen sdk * ci: combine sdk and format workflows into single generate workflow * ci * ci * ci * ci * ci * ci * ci * ci * ci * fix: re-enable tauri typecheck * ci * ci * ci * ci * ci * ci * ci * ci * ci * ci * ci * ci * sync * ci * ci * ci * ci * docs: Add portal project to ecosystem documentation (anomalyco#5300) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * core: enable project discovery for experimental builds * ci: publish with multiple tags instead of using dist-tag npm dist-tag add command is broken, so publish package multiple times with different tags directly instead * ci * ci * ci * release: v1.0.141 * sync: record last synced tag v1.0.141 * chore: format code --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com> Co-authored-by: Dax Raad <d@ironbay.co> Co-authored-by: Aiden Cline <aidenpcline@gmail.com> Co-authored-by: Nick <105120312+nick-vi@users.noreply.github.com> Co-authored-by: ry2009 <134240944+ry2009@users.noreply.github.com> Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Co-authored-by: David Hill <iamdavidhill@gmail.com> Co-authored-by: Hosenur Rahaman <hosenur.dev@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: opencode <opencode@sst.dev> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
xywsxp pushed a commit
to xywsxp/opencode
that referenced
this pull request
Apr 24, 2026
Rwanbt pushed a commit
to Rwanbt/unifia
that referenced
this pull request
May 5, 2026
AIALRA-0 pushed a commit
to AIALRA-0/opencode-turn-engine
that referenced
this pull request
Jun 10, 2026
AIALRA-0 pushed a commit
to AIALRA-0/opencode-turn-engine
that referenced
this pull request
Jun 10, 2026
avion23 pushed a commit
to avion23/opencode
that referenced
this pull request
Jun 10, 2026
Rwanbt pushed a commit
to Rwanbt/unifia
that referenced
this pull request
Jun 14, 2026
MarsQiu007 referenced
this pull request
in MarsQiu007/openNovel
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When a plugin is specified without a version (e.g.,
"my-plugin"or"my-plugin@latest"), OpenCode stores the literal string"latest"in the cache (~/.cache/opencode/package.json).On subsequent starts, the check
parsed.dependencies[pkg] === versioncompares"latest" === "latest", returns the cached module, and never checks npm for updates.Fix
After installing a package with
@latest, read the actual installed version from the package'spackage.jsonand store that instead.This means:
@latestnow re-fetches on each start (correct behavior - user wants latest)@1.2.3still use cache efficientlyTesting
rm ~/.cache/opencode/package.json@latest"1.2.3") instead of"latest"