Skip to content

chore(arena-backend): sync OpenCode to v2.4.4 - #329

Open
lokicik wants to merge 441 commits into
mainfrom
chore/opencode-v2.4.4
Open

lokicik wants to merge 441 commits into
mainfrom
chore/opencode-v2.4.4

Conversation

@lokicik

@lokicik lokicik commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

Our vendored OpenCode was on v2.4.2. This syncs it to v2.4.4. Upstream added approval policies that a project's opencode.json can set, which could make a contestant ask for an approval no one can give, so the engine ignores the two experimental ones. Config can also no longer remove Arena's own plugins with plugin: ["-…"]. Most arena engine tests haven't loaded since the 2.0 upgrade, and this fixes their imports. Please land this as a merge commit, not a squash.

Testing

  • [automated] All 138 files in arena-backend/packages/opencode/test/arena, one at a time, on this branch and on main with the same test fix: same results, plus the tests feat(plugins): switch project and personal instruction files #291 added. The ones that fail here fail on main too now that they load
  • [automated] New test: config can't set experimental.tool.auto or experimental.permission.save (core/test/permission.test.ts), fails without the fix
  • [automated] New tests: removing plugins by id, arena.* or * keeps Arena's plugins and the compaction settings (core/test/plugin/supervisor.test.ts), fail without the fix
  • [automated] Core tests for the files I resolved pass, apart from three tool-shell.test.ts cases that fail on main too. feat(plugins): switch project and personal instruction files #291's instruction and skill tests pass on upstream's rewritten instruction loading
  • [automated] bun turbo typecheck --filter=opencode --filter=@opencode/core --filter=@agent-duel/arena-service: no errors. npm run typecheck, npm run lint and npm run format pass
  • [AI] Stub-model battles in the dev desktop app on macOS with the compiled engine: a background command is waited for and its result reaches both sides before the vote, a background server ends for the loser on vote and for the winner on the next send, more turns and votes, Stop during a command, a Battle off reply, opencode:// refused inside a contestant script, and a relaunch that restores the chat. On the final commit, two turns and votes with the project's AGENTS.md in every contestant request
  • [AI] Stub battle on the compiled engine in a project whose opencode.json removes arena.engine-runtime, arena.websearch and opencode.config.compaction: the battle runs, and contestants get the same 12 tools as without it
  • [AI] Contestant requests compared with main for the same prompt: same tools, schemas and system prompt
  • Still not loading, as on main: six files that test 1.x engine code (model-idle, session-summary, backend-compaction, backend-compaction-loop, compaction-batches, compaction-request), and slots.integration gets 404s from the 1.x /session route
  • Not tested: real-model battles, Windows, Linux

Checklist

  • "What and why" is at most 500 characters
  • npm run typecheck, npm run lint and npm run format pass
  • Screenshots or video attached for UI changes
  • I agree to the contribution licensing policy and have authority to license my contribution.

vimtor and others added 30 commits November 29, 2026 16:31
…#67146)

Co-authored-by: vimtor <36263538+vimtor@users.noreply.github.com>
…ches (#67176)

Co-authored-by: victor <victor@anoma.ly>
…enchmarks (#67179)

Co-authored-by: victor <victor@anoma.ly>
…ethodology entry (#67184)

Co-authored-by: victor <victor@anoma.ly>
Co-authored-by: vimtor <36263538+vimtor@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
rekram1-node and others added 28 commits December 2, 2026 08:45
… (#67585)

Co-authored-by: opencodejr[bot] <348916617+opencodejr[bot]@users.noreply.github.com>
Co-authored-by: Dan Smolsky <dannysmo@gmail.com>
… tests (#67857)

Co-authored-by: Aiden Cline <aiden@anoma.ly>
# Conflicts:
#	arena-backend/packages/core/src/config.ts
#	arena-backend/packages/core/src/config/plugin/compatibility.ts
#	arena-backend/packages/core/src/config/plugin/instruction.ts
#	arena-backend/packages/core/src/tool/plugin/read.ts
#	arena-backend/packages/core/test/session-instructions.test.ts
#	docs/upstream-sync.md
@lokicik
lokicik requested a review from a team as a code owner December 3, 2026 14:20

This branch has not been deployed

No deployments
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.