Repository navigation
chore(sync): merge upstream dev 92e28580f1 and prepare v2.4.1-shuv.1 - #511
Merged
Merged
Conversation
…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>
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.
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.
Summary
Merge upstream OpenCode
devthrough92e28580f1intointegration-v2and prepare2.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.integration-v2(#510)dcbd2e8d613be915553a8ebec4299acea561a857a96327d3e84d795cca231dc30b534193bbc0f47b354e4a0128), upstreamdevd284e7ce17d0a98c80d0bebd5cc6dce2dbdd5f745a6d8092d6), upstreamdev92e28580f1a66875616cd4512f5915ff2bb753a0v2.4.1tag (lightweight; audit reference)6f0514052a3c859894ad01bb14cc14dda1e44b96v2.4.1release commit ondev(included)472d9f8e2e(anomalyco#65848)v2.4.1tag /devmerge base698800f59cf3808e3a670b91e35ba1eb14d92411devat final re-pin (not taken)2002026a120fc2da9e1b35ab3337a1273c263d70(anomalyco#65890, anomalyco#65889)Tag audit
v2.4.1is one commit off698800f59c, so it is not ondev.dev's ownrelease: v2.4.1commit,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 thedevmerge contains the tag's content, withdev's wording.v2.4.0's tag anddev'sd6379ff0e1have the same patch-id.git diff v2.4.1 HEAD(753) is either a post-tagdevchange (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: keepshuvcode. The version moves in release prep.packages/protocol/src/groups/session.ts: keep the fork's strictSessionPromptPayload(StructWithRest) and take upstream's new field descriptions andmetadatadefinition 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
009913ae08chore(release):shuvcode2.4.1-shuv.1. The unreleasedv2.4.0-shuv.1notes becomev2.4.1-shuv.1.1cc4f53ecfchore(sync): keep the fork's.github/TEAM_MEMBERSand.github/release/publish-discord.sh. Upstream changes them in71020126b0and72fbe17715, but.githubis frozen. Net.githubdiff against the base: none.1e2cca60aafix(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. Loadingsession/storeorsession/executionfirst threwCannot access 'node' before initialization. That failed 48 server tests, through the fork'ssession-prompttest. Upstream92e28580f1has the same cycle but no test that triggers it. The fix moves the pure cwd metadata helpers intosession/cwd-stored.ts, with a regression test that fails without the fix.6f28966df4docs(sync): the v2.4.1 audit.Tool and automation alignment (Lauren's call, Nov 23)
automationnamespace.automation.tsandautomation.txtmatch upstream exactly.shell,session.renameand the worktree tools. Only automation management andshuvcode.session.movestay blocked, and upstream's capability test passes. Upstream's timed-out automation shell fix (e1fb08afc5) is included.shuvcode/shuvcode.sessionnamespaces and theopencode_*MCP permission names.jev_systemOne.gpt-liveplugin runs on a ChatGPT subscription, so it stays.v2.4.0 breaking changes vs the fork
generate_imagerenameGITHUB_TOKENGITHUB_TOKENuses are GitHub API tooling.catalog:. v2.4.1 lowers the plugin peer floor to 0.8.0.shuvcode.session.Validation (local, final tree)
bun install --frozen-lockfile/ rootbun run checkmigration --check/ clientcheck:generatedOPENCODE_CHANNEL=integration-v2 bun run build --single(linux-x64) pass--version/--helpshow Shuvcode;modelshas no Claude Agent; data goes undershuvcode/;machine --help;serveon loopback answers 401 with no errorsdir --redact.githubnet diff, identity greps on the new upstream lines, and a sweep of module load order. The review found the import cycle (fixed) and.githubdrift (kept as the fork's). Clean on re-run.Not proven locally:
e2e).cli-rscargo tests.packages/protocolcheck:generatedreportsopenapi.jsonstale by the fork'sConfig.Diagnostic. That is pre-existing: it reports the same ondcbd2e8, and CI doesn't run it.Expected CI failure: fleet hygiene flags upstream
packages/cli-rsfixtures and scripts: 19 PII findings and two shellcheck scripts. The fix is pending Cap. The audit doc lists the narrower 12-rule proposal (nine exacttext:paths, oneemail:, two exactshellcheck:paths), which replaces the earlier six globs..githubis unchanged in this PR.