Skip to content

chore(sync): merge upstream dev d284e7ce17 and prepare v2.4.0-shuv.1 - #511

Open
shuv1337 wants to merge 188 commits into
integration-v2from
sync-upstream-240
Open

shuv1337 wants to merge 188 commits into
integration-v2from
sync-upstream-240

Conversation

@shuv1337

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 at d284e7ce17 into integration-v2 and prepare 2.4.0-shuv.1. That is 183 commits past #509, including the v2.4.0 release. Full audit: docs/sync-2026-11-23-v2.4.0.md.

Pin Commit
Base integration-v2 (#510) dcbd2e8d613be915553a8ebec4299acea561a857
Previous upstream pin / merge base (#509) a96327d3e84d795cca231dc30b534193bbc0f47b
Merged upstream dev (second parent of 354e4a0128) d284e7ce17d0a98c80d0bebd5cc6dce2dbdd5f74
v2.4.0 tag (lightweight; audit reference) 44aed4fd144611879046ae923c25541f913780ad
v2.4.0 release commit on dev (included) d6379ff0e1c1c09e927e63c28c58a1f2a0533462
Live dev at final re-pin (not taken) 7cfd86844337705d8753b989570ed9bacb93bc92 (anomalyco#65758)

Tag audit

  • The tag commit 44aed4fd14 is not on dev. d6379ff0e1 (release: v2.4.0 (#65753)) has the same patch-id, so the tag adds nothing that dev doesn't already have.
  • Every path that differs between v2.4.0 and this head is one of two kinds:
    • one of the four post-tag dev commits: 1906056539, 7edab789f7, 26f4041911, d284e7ce17
    • a recorded fork delta
  • The fork-delta set is the same as before the sync, except:
    • 27 workspace versions now match upstream 2.4.0.
    • The automation tools moved to upstream's namespace.
    • Eight files gained fork-identity adaptations.

Conflicts (51 paths, see git show --remerge-diff 354e4a0128)

  • Versions: 32 package.json files take upstream 2.4.0. The shuvcode CLI keeps its name and bin. bun.lock takes upstream versions and keeps the shuvcode workspace entry. It also gains the new @opencode/cli-rs workspace line.
  • CHANGELOG: upstream's v2.4.0 section goes on top, verbatim.
  • CLI:
    • --server/--standalone stay the fork's global ServerFlags/connectionFlags. Upstream's per-command ServerParams are dropped from the new machine command and the hidden login alias.
    • spec.ts combines hidden aliases with connectionFlags.
    • default.ts takes upstream's directory-or-help check, with the server still read from ServerFlags.
    • The hidden-provider filters stay in auth login and in the TUI integration and free-model dialogs, next to upstream's Go and speed filters.
  • Core:
    • tool.ts keeps the fork's executeCall/ToolActivity split, with upstream's top-level Code Mode routing moved inside it.
    • config.ts keeps the fork's positioned diagnostics and logs upstream's new removed kind as a warning.
  • Automations: these take upstream's own automation namespace (feat(automation): give automation tools their own namespace anomalyco/opencode#65001) and its trimmed unattended denylist (refactor(automation): trim shell action checks and the unattended denylist anomalyco/opencode#65217), with shuvcode.session.move still blocked. Tests and the /automation prompt follow.
  • Docs: permissions.mdx keeps the jev_systemOne row and takes upstream's generate_image rename.

Follow-ups

  • fix(core):
    • Upstream's new session search, read and interrupt tools register under shuvcode.session.
    • The machine command and its tests use ServerFlags.
    • New help-text tests expect shuvcode.
    • The fork identity test now covers the automation namespace, the trimmed denylist and the removed automations/mcp_events experimental flags.
  • chore(hygiene): .gitleaks.toml allowlists the RFC 6455 sample Sec-WebSocket-Key nonce used by upstream machine-link tests.
  • chore(release): shuvcode 2.4.0-shuv.1, with release notes.

Behavior changes for review

  • Automation tool names: tools.shuvcode.automation_* / shuvcode_automation_* become tools.automation.* / automation_*.
  • Unattended denylist: automation code may now call shell, session.rename and the worktree tools after the creation-time unattended permission prompts. This follows upstream. Restoring the fork's stricter list would break upstream's automation capability test and is a policy call.
  • Automations default: on by default via the top-level automations key.

Fork preservation

These are unchanged in dcbd2e8..HEAD:

Upstream's Claude websearch provider registers only from the unloaded Claude Agent plugin. packages/cli-rs (upstream's native CLI) is upstream-owned and outside fork build and publish.

Validation (local, final tree)

Gate Result
bun install --frozen-lockfile Pass, no changes
Root bun run check Pass, 41/41
migration --check / client generate Pass / no diff
Core 7,823 pass, 350 skip, 0 fail; the ConfigSkillPlugin watcher test passed
CLI / TUI / Server / AI 536 / 1,806 / 176 / 2,311 pass, 0 fail
Schema / Protocol / Util / Plugin / Client / Codemode 95 / 14 / 157 / 38 / 279 / 322 pass
Browser plugin / Session UI / App unit 210 / 675 / 2,877 pass
Antigravity / Claude / Quota 25 / 43 / 34 pass
Build bun run build --single (linux-x64) pass
Smoke test on the built binary, with isolated XDG dirs --version and help show shuvcode (login hidden); machine honours --server; pair --server is rejected; a bad directory shows help; data goes under shuvcode/
gitleaks 8.21.2 dir --redact No leaks
gitleaks git on dcbd2e8..HEAD 1 false positive: base64 of the opencode:secret test password in packages/cli-rs tests. CI's dir mode doesn't flag it.
Adversarial review Read the remerge diff. Compared fork deltas before and after per file: only the intended automation changes and version/format shrinks. Scanned for opencode namespace and binary names, hidden-provider surfaces and version strings. All findings are fixed in the follow-ups.

Not proven locally:

  • App e2e and browser tests (CI runs e2e).
  • A non-interactive model run (no paid keys used).
  • The Rust cli-rs cargo tests.

Expected CI failure: fleet hygiene PII and shellcheck will flag upstream packages/cli-rs fixtures and scripts. The six-line .github/hygiene-allowlist.txt fix is in the sync doc. It is not applied because .github is frozen under the CI-gates hold.

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

Co-authored-by: Filip <filip@anoma.ly>
Hona and others added 29 commits November 22, 2026 21:44
Co-authored-by: Dan Smolsky <dannysmo@gmail.com>
…alyco#65621)

Co-authored-by: Miroshnikov Vladislav <55508043+vladislav-miroshnikov@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Merge anomalyco/opencode dev at d284e7c,
which contains the v2.4.0 release commit d6379ff (patch-identical to the
lightweight v2.4.0 tag commit 44aed4f) plus anomalyco#65757.
- Register upstream's session search/read/interrupt tools under shuvcode.session.
- Move fork identity tests to upstream's automation namespace and trimmed
  unattended denylist; drop the removed automations/mcp_events flags.
- Read --server/--standalone through ServerFlags in the new machine command
  and its tests, and expect the shuvcode binary name in new CLI help tests.
Upstream v2.4.0's machine-link tests send the public RFC 6455 sample nonce
as Sec-WebSocket-Key, which gitleaks' generic-api-key rule matches.
@socket-security

Copy link
Copy Markdown

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.