Skip to content

fix(core): sync 6 upstream core bug fixes (anomalyco/opencode, Sep–Nov 2026) - #296

Open
alltomatos wants to merge 9 commits into
devfrom
claude/gallant-fermi-vk5pnr
Open

alltomatos wants to merge 9 commits into
devfrom
claude/gallant-fermi-vk5pnr

Conversation

@alltomatos

Copy link
Copy Markdown
Owner

Issue for this PR

No issue. This comes from the scheduled upstream sync with anomalyco/opencode.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

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 540 fix(...) commits in packages/core|server|sdk|plugin. I checked each one with git apply --check against our tree. Only 6 apply; the rest target the v2 architecture, which this fork doesn't have.

Cherry-picked with -x:

One adaptation commit for this fork:

  • plugin/provider/opencode.ts: limit.context/limit.output are optional now, so the existing catalog value is kept when remote config leaves one out.
  • Test fixes: one import path (@opencode-ai/core) and the converter alias in the Copilot test. In the Vertex test, the eu expectation 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 --noEmit passes in packages/core and packages/opencode. Dependencies were installed with the usual sandbox workaround, which was reverted and is not committed.
  • bun test in core (markdown, github-copilot, google-vertex, config/provider, repository): 79 pass, 0 fail.
  • packages/opencode test/util/repository.test.ts: 6 pass.
  • packages/opencode test/config already has 97 failures (InstanceRef not provided). I confirmed the same 97 fail on the base commit b727fed without these changes, so they are not caused by this PR.

Screenshots / recordings

N/A. No UI changes.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Generated by Claude Code

nkootstra and others added 9 commits November 28, 2026 12:17
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants