Skip to content

chore(sync): merge upstream dev 92e28580f1 and prepare v2.4.1-shuv.1 - #511

Merged
shuv1337 merged 226 commits into
integration-v2from
sync-upstream-240
Nov 23, 2026
Merged

shuv1337 merged 226 commits into
integration-v2from
sync-upstream-240

Conversation

@shuv1337

@shuv1337 shuv1337 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Do not merge without Cap's go (SM-MESH-OPENCODE-240). This PR only syncs upstream and prepares release metadata. It does not publish, tag or deploy anything.

Summary

Merge upstream OpenCode dev through 92e28580f1 into integration-v2 and prepare 2.4.1-shuv.1. That is 214 commits past #509, including the v2.4.0 and v2.4.1 releases. The PR was first opened for v2.4.0 and was extended to v2.4.1 on Lauren's call (Nov 23) with a second merge on top. No pushed history was rewritten. Full audit: docs/sync-2026-11-23-v2.4.1.md. It was renamed from the v2.4.0 audit.

Pin Commit
Base integration-v2 (#510) dcbd2e8d613be915553a8ebec4299acea561a857
Previous upstream pin (#509) a96327d3e84d795cca231dc30b534193bbc0f47b
First merge (354e4a0128), upstream dev d284e7ce17d0a98c80d0bebd5cc6dce2dbdd5f74
Second merge (5a6d8092d6), upstream dev 92e28580f1a66875616cd4512f5915ff2bb753a0
v2.4.1 tag (lightweight; audit reference) 6f0514052a3c859894ad01bb14cc14dda1e44b96
v2.4.1 release commit on dev (included) 472d9f8e2e (anomalyco#65848)
v2.4.1 tag / dev merge base 698800f59cf3808e3a670b91e35ba1eb14d92411
Live dev at final re-pin (not taken) 2002026a120fc2da9e1b35ab3337a1273c263d70 (anomalyco#65890, anomalyco#65889)

Tag audit

  • v2.4.1 is one commit off 698800f59c, so it is not on dev. dev's own release: v2.4.1 commit, 472d9f8e2e, has the same version bumps and lockfile entries. Their patch-ids differ only by the wording of one CHANGELOG line (fix(core): keep the goal reminder out of the cache tail anomalyco/opencode#65788), so the dev merge contains the tag's content, with dev's wording.
  • v2.4.0's tag and dev's d6379ff0e1 have the same patch-id.
  • Every path in git diff v2.4.1 HEAD (753) is either a post-tag dev change (52) or a recorded fork delta (719).

Second merge conflicts (4 paths; git show --remerge-diff 5a6d8092d6)

  • CHANGELOG.md: upstream's v2.4.1 section, verbatim.
  • bun.lock / packages/cli/package.json: keep shuvcode. The version moves in release prep.
  • packages/protocol/src/groups/session.ts: keep the fork's strict SessionPromptPayload (StructWithRest) and take upstream's new field descriptions and metadata definition into it. The generated client shows no diff.

The 51 conflicts from the first merge are listed in the audit doc.

Commits on top of the second merge

  • 009913ae08 chore(release): shuvcode 2.4.1-shuv.1. The unreleased v2.4.0-shuv.1 notes become v2.4.1-shuv.1.
  • 1cc4f53ecf chore(sync): keep the fork's .github/TEAM_MEMBERS and .github/release/publish-discord.sh. Upstream changes them in 71020126b0 and 72fbe17715, but .github is frozen. Net .github diff against the base: none.
  • 1e2cca60aa fix(core): break an import cycle that upstream feat(core): add internal experimental session cwd anomalyco/opencode#65633 added: session/info → session/cwd → file-access → permission → session/store. Loading session/store or session/execution first threw Cannot access 'node' before initialization. That failed 48 server tests, through the fork's session-prompt test. Upstream 92e28580f1 has the same cycle but no test that triggers it. The fix moves the pure cwd metadata helpers into session/cwd-stored.ts, with a regression test that fails without the fix.
  • 6f28966df4 docs(sync): the v2.4.1 audit.

Tool and automation alignment (Lauren's call, Nov 23)

  • Automation tools use upstream's automation namespace. automation.ts and automation.txt match upstream exactly.
  • The unattended denylist is upstream's shorter list (refactor(automation): trim shell action checks and the unattended denylist anomalyco/opencode#65217). This loosens the previous fork restriction per Lauren's call (Nov 23). Automation code may call shell, session.rename and the worktree tools. Only automation management and shuvcode.session.move stay blocked, and upstream's capability test passes. Upstream's timed-out automation shell fix (e1fb08afc5) is included.
  • The remaining tool differences are fork identity or fork-only features:
    • Identity: the shuvcode / shuvcode.session namespaces and the opencode_* MCP permission names.
    • Fork-only: rich tool errors, glob/grep metadata, subagent root-family routing, built-in plugin options, and jev_systemOne.
  • One partial overlap is kept: upstream now ships GPT-Live voice in core, but it needs an OpenAI key or OpenCode Console and can't use ChatGPT sign-in. The fork's gpt-live plugin runs on a ChatGPT subscription, so it stays.

v2.4.0 breaking changes vs the fork

Change Fork impact
generate_image rename None. No fork use of the old name; the docs take the new one.
Copilot ignores GITHUB_TOKEN None. The fork doesn't touch Copilot. Repo GITHUB_TOKEN uses are GitHub API tooling.
Version-following plugin auto-update None. Fork plugins are bundled built-ins, and the repo config lists no npm plugins.
MCP newest protocol first None. There are no fork MCP protocol overrides.
TUI plugins need OpenTUI 0.9.4 None. The catalog is 0.9.4, and gpt-live uses catalog:. v2.4.1 lowers the plugin peer floor to 0.8.0.
Code Mode session tool paths moved Handled. The new session tools register under shuvcode.session.
Assistant parts as rows None. No fork code touches part storage. The migration check is clean.

Validation (local, final tree)

Gate Result
bun install --frozen-lockfile / root bun run check No changes / 41/41
migration --check / client check:generated Pass / no diff
Core 7,842 pass, 350 skip, 0 fail
CLI / TUI / Server / AI 536 / 1,813 / 176 / 2,311 pass, 0 fail
Schema / Protocol / Util / Plugin / Client / Codemode 95 / 17 / 157 / 38 / 281 / 322 pass
Browser plugin / GUI plugins / Session UI / App unit 210 / 2,089 / 675 pass / pass
Antigravity / Claude / Quota / gpt-live 25 / 43 / 34 / 46 pass
Import order 149 core modules each load first in a fresh process
Build OPENCODE_CHANNEL=integration-v2 bun run build --single (linux-x64) pass
Smoke (isolated HOME/XDG) --version/--help show Shuvcode; models has no Claude Agent; data goes under shuvcode/; machine --help; serve on loopback answers 401 with no errors
gitleaks 8.21.2 dir --redact No leaks
Adversarial review Remerge diff, fork-delta path audit, .github net diff, identity greps on the new upstream lines, and a sweep of module load order. The review found the import cycle (fixed) and .github drift (kept as the fork's). Clean on re-run.

Not proven locally:

  • App e2e/browser tests (CI e2e).
  • A live model run (no paid keys).
  • cli-rs cargo tests.
  • packages/protocol check:generated reports openapi.json stale by the fork's Config.Diagnostic. That is pre-existing: it reports the same on dcbd2e8, and CI doesn't run it.

Expected CI failure: fleet hygiene flags upstream packages/cli-rs fixtures and scripts: 19 PII findings and two shellcheck scripts. The fix is pending Cap. The audit doc lists the narrower 12-rule proposal (nine exact text: paths, one email:, two exact shellcheck: paths), which replaces the earlier six globs. .github is unchanged in this PR.

Hona and others added 30 commits November 20, 2026 01:51
…utput are long (anomalyco#65115)

Co-authored-by: Filip <filip@anoma.ly>
usrnk1 and others added 26 commits November 23, 2026 15:14
…it on upgrades (anomalyco#65819)

Co-authored-by: Sebastian <sebastian@anoma.ly>
Co-authored-by: Shreyansh Jain <shreyanshjain646@gmail.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Merge anomalyco/opencode dev at 92e2858,
which contains the v2.4.1 release commit 472d9f8 (same versions and
lockfile as the lightweight v2.4.1 tag commit 6f05140; one CHANGELOG
line is worded differently).
Upstream 7102012 (team members) and 72fbe17 (Discord release
subheadings) edit .github/TEAM_MEMBERS and .github/release/publish-discord.sh.
.github is frozen, so this PR keeps the fork's versions; taking them is
left for Cap.
Upstream anomalyco#65633 makes session/info.ts import session/cwd.ts, which reaches
permission.ts through file-access.ts. permission.ts reads SessionStore.node
at load time, so importing session/store.ts or session/execution.ts first
throws "Cannot access 'node' before initialization". The fork's server
session-prompt test does that and took down the whole server suite.

Move the pure metadata helpers into session/cwd-stored.ts, which
session/info.ts imports instead. session/cwd.ts re-exports them, so
callers are unchanged.
Rename the v2.4.0 audit to docs/sync-2026-11-23-v2.4.1.md and cover the
second merge: pins, the v2.4.1 tag patch-id finding, the four conflicts,
tool and automation alignment (the shorter unattended denylist loosens the
previous fork restriction per Lauren's call, Nov 23), the v2.4.0
breaking-change verdicts, the narrower hygiene proposal pending Cap, and
validation.
@shuv1337 shuv1337 changed the title chore(sync): merge upstream dev d284e7ce17 and prepare v2.4.0-shuv.1 chore(sync): merge upstream dev 92e28580f1 and prepare v2.4.1-shuv.1 Nov 23, 2026
@shuv1337
shuv1337 merged commit ca82333 into integration-v2 Nov 23, 2026
7 checks passed
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.