Repository navigation
fix(core): sync 6 upstream core bug fixes (anomalyco/opencode, Sep–Nov 2026) - #296
Open
alltomatos wants to merge 9 commits into
Open
alltomatos wants to merge 9 commits into
alltomatos wants to merge 9 commits into
Conversation
…nomalyco#51245) (cherry picked from commit d5154fb)
…yco#54201) (cherry picked from commit 9f282f8)
(cherry picked from commit ba70b48)
…nomalyco#62240) (cherry picked from commit 4e9c00a)
…nomalyco#62250) (cherry picked from commit 64f2403)
…runtime) Port of upstream anomalyco#51577 (already cherry-picked into packages/core) to the v1 copy in packages/opencode/src/util/repository.ts, which is the one the desktop app actually runs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HgA3Bti5etS57fdixuf1zE
- plugin/provider/opencode.ts: model limit.context/output became optional in the v1 config schema (upstream anomalyco#62240); keep the catalog's existing value when remote config omits one instead of assigning undefined. - tests: fix import path (@opencode-ai/core) and the local alias used by the copilot converter test so the picked tests compile in this fork. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HgA3Bti5etS57fdixuf1zE
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HgA3Bti5etS57fdixuf1zE
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 free
to 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.
Issue for this PR
No issue. This comes from the scheduled upstream sync with anomalyco/opencode.
Type of change
What does this PR do?
Upstream is now at v2.4.1 and deleted
packages/opencode(the v1 runtime this fork still runs) back in July. Its history also has no common ancestor with ours, so a full merge isn't possible. Since the last sync (2026-09-15) upstream has about 540fix(...)commits inpackages/core|server|sdk|plugin. I checked each one withgit apply --checkagainst our tree. Only 6 apply; the rest target the v2 architecture, which this fork doesn't have.Cherry-picked with
-x:./..) in repository hosts, which become cache directories. I also ported it by hand to the v1 copy inpackages/opencode/src/util/repository.ts, the runtime the app actually uses.reasoning_opaquevalues. Before this fix that threw "Multiple reasoning_opaque values"; now we keep the latest one, the same way the VS Code client does.eu/usmulti-region locations now useaiplatform.{eu,us}.rep.googleapis.com. v1 already had this; this aligns the v2 plugin.limitsets only part ofcontext/outputno longer get rejected.descriptionstarts with[Tag] textno longer get dropped.One adaptation commit for this fork:
plugin/provider/opencode.ts:limit.context/limit.outputare optional now, so the existing catalog value is kept when remote config leaves one out.@opencode-ai/core) and the converter alias in the Copilot test. In the Vertex test, theeuexpectation is updated to the new host. The provider test keeps our version because the upstream one targets a different API.How did you verify your code works?
tsgo --noEmitpasses inpackages/coreandpackages/opencode. Dependencies were installed with the usual sandbox workaround, which was reverted and is not committed.bun testin core (markdown, github-copilot, google-vertex, config/provider, repository): 79 pass, 0 fail.packages/opencodetest/util/repository.test.ts: 6 pass.packages/opencodetest/configalready has 97 failures (InstanceRef not provided). I confirmed the same 97 fail on the base commitb727fedwithout these changes, so they are not caused by this PR.Screenshots / recordings
N/A. No UI changes.
Checklist
Generated by Claude Code