GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(sync): merge upstream v2 through v2.0.21 by shuv1337 · Pull Request #371 · shuv1337/shuvcode

Conversation

@shuv1337

@shuv1337 shuv1337 commented Sep 30, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Issue for this PR

N/A. Upstream sync. Do not merge this PR.

Type of change

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

Upstream sync of anomalyco/opencode branch v2 into integration-v2.

What does this PR do?

Merges anomalyco/opencode branch v2 through the v2.0.21 release-sync commit into the Shuvcode fork and keeps fork identity.

  • Signal tag: v2.0.21 @ 8a8bd622a3d7dc29ccf30ec17f84e363ed95ed72 (release: v2.0.21).
  • Merge source: anomalyco/opencode branch v2, release-sync commit dd2af0e5fccd4014ed2ab938f369f01817935211 (sync release versions for v2.0.21). Not current v2 HEAD.
  • Merge commit: 210c16a571629692027ed60dcf393c72ae4bf49a (2bd1e49d3c + dd2af0e5fc).
  • Fork base was integration-v2 at 2bd1e49d3c (after PR chore(sync): merge upstream v2 through v2.0.20 #370, v2.0.20).
  • CLI stays package/bin shuvcode at 2.0.21-shuv.1. No opencode or opencode2 bin.

Tag relationship (same shape as v2.0.20, not the v2.0.19 sibling pattern):

For v2.0.19 the tag and the sync commit shared a parent and had identical trees. v2.0.21 does not.

  • The tag is not on v2. It is not an ancestor of upstream/v2. upstream/v2..v2.0.21 is exactly the tag commit.
  • Tag 8a8bd622a3 parent: f46fa72a92 (fix(core): add namespaced session identity headers (#52368)). Tree d551f447236479f665d8324b1c4439a0ce5f6e63.
  • Sync commit dd2af0e5fc parent: a923596ee7 (feat(plugin): expose session removal (#52387)). Tree 1a4dfdc6c89b605970461048a86acf843ec16bcd.
  • Trees do not match.
  • Merge-base of the tag and the sync commit is the tag's parent f46fa72a92.
  • Commits on the v2 side that the tag lacks (3):
    • 91b9bc52a4 fix(ai): make model capability defaults forward-compatible (#52388)
    • a923596ee7 feat(plugin): expose session removal (#52387)
    • dd2af0e5fc sync release versions for v2.0.21
  • Commits the tag has that v2 lacks (1): 8a8bd622a3 release: v2.0.21.
  • The release commit and the sync commit touch the same version files. The tree difference is the two feature commits above.
  • v2 HEAD 5556ad563d is two commits past the sync. Those are not in this merge:
    • 629e7aaa31 fix(session-ui): increase markdown bold weight (#52389)
    • 5556ad563d fix(ai): stop retrying Z.ai Responses model and permission rejections (#52135)

What's new upstream (8d8a7bc844 .. dd2af0e5fc, 25 commits):

  • AI / providers: prompt cache breakpoints on OpenRouter Anthropic and Qwen (fix(ai): place prompt cache breakpoints on OpenRouter Anthropic and Qwen requests anomalyco/opencode#52110); Workers AI and Amazon Nova input-token rejections classified as context overflow (fix(ai): classify Workers AI context window rejections as context overflow anomalyco/opencode#52128, fix(ai): classify Amazon Nova input token rejections as context overflow anomalyco/opencode#52131); Cloudflare AI Gateway Claude and OpenAI routed through native passthroughs (fix(ai): route Cloudflare AI Gateway Claude and OpenAI through native passthroughs anomalyco/opencode#52222); forward-compatible model capability defaults (fix(ai): make model capability defaults forward-compatible anomalyco/opencode#52388, on v2 and not in the tag).
  • Core / session: Copilot Responses settings pass through (fix(core): pass through Copilot Responses settings anomalyco/opencode#52182); form cancellation can carry a message (feat(core): let form cancellation carry a message anomalyco/opencode#52137); read-tool ancestor instructions are not reinjected (fix(core): avoid reinjecting ancestor instructions anomalyco/opencode#52364); namespaced session identity headers (fix(core): add namespaced session identity headers anomalyco/opencode#52368); bundled models.dev snapshot refresh.
  • Plugin: session removal on the plugin host (feat(plugin): expose session removal anomalyco/opencode#52387, on v2 and not in the tag).
  • CLI / ACP: ACP tests go through the wire protocol (test(acp): drive ACP tests through the wire protocol anomalyco/opencode#52307); ACP follows server defaults and refreshes the session catalog (fix(acp): follow server defaults and refresh the session catalog anomalyco/opencode#52286).
  • TUI: OpenTUI 0.5.13 then 0.5.14 (tui: update OpenTUI to 0.5.13 anomalyco/opencode#52233, tui: upgrade OpenTUI to 0.5.14 anomalyco/opencode#52316); tighter expanded instruction group spacing (fix(tui): tighten expanded instruction group spacing anomalyco/opencode#52311).
  • Session UI: adjacent reads group into one row (feat(session-ui): group adjacent reads into one row anomalyco/opencode#52207); the open Used group header stays sticky (feat(session-ui): keep open Used group header sticky anomalyco/opencode#52210).
  • App / desktop / browser: alerts only for open session tabs (fix(app): alert only for open session tabs anomalyco/opencode#52204); new-session project selection uses the resolved project id (fix(app): select new-session project by resolved ID anomalyco/opencode#52230); markdown session id references open that session (feat(app): open referenced session IDs from markdown anomalyco/opencode#52231); the in-app browser can comment on page elements (feat(desktop): comment on page elements from the in-app browser anomalyco/opencode#52217); browser tools stay hidden unless a desktop is attached (fix(browser): hide browser tools unless a desktop is attached anomalyco/opencode#52309).
  • Release: sync release versions for v2.0.21.

Conflicts (4):

  • packages/cli/package.json: kept name shuvcode and bin shuvcode (./bin/shuvcode.mjs). Set version 2.0.21-shuv.1.
  • bun.lock: took upstream's lockfile, then regenerated with bun install so the workspace entry is shuvcode at 2.0.21-shuv.1 and the fork plugin packages stay (@shuvcode/gpt-live-plugin, @shuvcode/quota-plugin, marked). bun install --frozen-lockfile passes.
  • packages/ai/src/protocols/openai-chat.ts: upstream moved chat cache breakpoints onto text content parts (toolMessage). The fork still lowers rich tool failures through ProviderShared.toolErrorContent, including the error text plus content parts. Both are kept: rich errors go through toolMessage, so cache control stays on the text part.
  • .github/workflows/publish.yml: kept the fork file unchanged. Upstream's only edit was the Discord job if: guard from fix(ci): run V2 Discord notification after skipped build jobs anomalyco/opencode#52012 (fix(ci): run V2 Discord notification after skipped build jobs). No workflow files changed in this PR.

packages/tui/package.json auto-merged: upstream version 2.0.21, plus the fork marked catalog dependency and @shuvcode/gpt-live-plugin / @shuvcode/quota-plugin workspace dependencies.

These fork pieces did not conflict and are unchanged: dialog-pair.tsx still says shuvcode service set hostname; pairing still errors with shuvcode service unset disabled; the plugin TUI API still has prompt autocomplete; packages/ai/src/protocols/shared.ts still exports toolErrorContent; compaction still emits [Tool error] and [Tool error content]; integration.connection.status stubs remain; CLI/help tests still assert shuvcode.

Rebrand: no new opencode <cmd> string landed in source the fork has already rebranded. packages/cli/src/acp/service.ts auto-merged and kept shuvcode auth login, terminal-auth command shuvcode, label Shuvcode Login, and agent name Shuvcode. The new wire test packages/cli/test/acp/session.test.ts asserted the upstream wording, so those expectations were updated to match the fork source:

  • description Run \opencode auth login`→Run `shuvcode auth login``
  • terminal-auth command opencode → shuvcode
  • label OpenCode Login → Shuvcode Login
  • agentInfo.name OpenCode → Shuvcode

The method id opencode-login and the method name Login with opencode are unchanged, matching the existing fork source.

Judgment calls:

  • HTTP headers x-opencode-session-id and x-opencode-parent-session-id (fix(core): add namespaced session identity headers anomalyco/opencode#52368) stay as upstream wrote them. They are wire identity headers next to the existing X-Session-Id / x-parent-session-id headers, not CLI hints.
  • Merge stops at the sync commit. The two commits on v2 after it are not included.
  • Did not run bun run generate. Upstream already updated the generated client for the form-cancel query, and typecheck passed.
  • #52012 is an ancestor of the sync commit, but its workflow edit was dropped with the fork publish.yml.

Nothing else needs a product decision. Do not merge this PR.

How did you verify your code works?

Local only. GitHub Actions were not triggered.

  • bun install and bun install --frozen-lockfile (bun 1.4.2)
  • bun run check from the repo root, including the pre-push hook: oxlint clean (0 warnings, 0 errors), turbo typecheck 40/40
  • packages/tui: dialog-pair, plugin-model, plugin-autocomplete, mini footer, and group-view: 116 pass, 2 skip
  • packages/server: process pairing and fetch: 13 pass
  • packages/cli: web-ui, server-connection, service, noninteractive run, auth, auth-login choices, mcp-auth choices, session-target, and the ACP wire/subprocess tests this sync changed (catalog, session, permission, prompt, replay, turn, config-options, lifecycle): 126 pass, 4 todo
  • packages/ai: cache-policy, executor, provider-error, effort-updates, provider-package, and the anthropic, bedrock, gemini, mistral, openai-chat, openai-responses, meta, cloudflare, zai, and openrouter provider tests, including the recorded cases this sync touched: 726 pass, 24 skip
  • packages/core: aisdk, aisdk-native, tool-registry, session-compaction, session-compaction-transport, plugin session-remove, form, session-title, session-runner: 375 pass
  • packages/plugin host resolve: 9 pass
  • packages/claude-plugin: 21 pass
  • packages/plugin-browser rpc: 37 pass
  • packages/desktop browser-errors: 5 pass
  • packages/session-ui: timeline rows, projection, and markdown session links: 66 pass
  • packages/app (solid condition + happydom): composer schema/request, comment-note, browser connection, notification alert, new-session project selector: 37 pass

Session-ui and app Playwright component/e2e specs were not run here.

Screenshots / recordings

N/A. No fork UI layout change.

Checklist

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
opencode-agent Bot and others added 26 commits September 29, 2026 16:22
@opencode-agent @rekram1-node
fix(ci): run V2 Discord notification after skipped build jobs (anomal…
df51166
…yco#52012)

Co-authored-by: rekram1-node <[email protected]>
@rekram1-node
fix(core): pass through Copilot Responses settings (anomalyco#52182)
760f87f
@rekram1-node
fix(ai): place prompt cache breakpoints on OpenRouter Anthropic and Q…
74dbc50
…wen requests (anomalyco#52110)
@Hona
feat(session-ui): group adjacent reads into one row (anomalyco#52207)
1b02abc
@Hona
feat(session-ui): keep open Used group header sticky (anomalyco#52210)
67b14e9
@opencode-agent @Brendonovich
fix(app): alert only for open session tabs (anomalyco#52204)
bf97a04
Co-authored-by: Brendonovich <[email protected]>
@rekram1-node
fix(ai): classify Workers AI context window rejections as context ove…
a80a000
…rflow (anomalyco#52128)
@simonklee
tui: update OpenTUI to 0.5.13 (anomalyco#52233)
1243d09
@opencode-agent @Brendonovich
fix(app): select new-session project by resolved ID (anomalyco#52230)
dd68d6e
Co-authored-by: Brendonovich <[email protected]>
@Hona
feat(desktop): comment on page elements from the in-app browser (anom…
01efd22
…alyco#52217)
@opencode-agent @Brendonovich
feat(app): open referenced session IDs from markdown (anomalyco#52231)
ffa4c4c
Co-authored-by: Brendonovich <[email protected]>
@opencode-agent
chore(core): refresh bundled models.dev snapshot
c0285b4
@nexxeln
fix(acp): follow server defaults and refresh the session catalog (ano…
1844c11
…malyco#52286)
@jlongster
feat(core): let form cancellation carry a message (anomalyco#52137)
02c3891
@OpeOginni
fix(tui): tighten expanded instruction group spacing (anomalyco#52311)
9388b94
@simonklee
tui: upgrade OpenTUI to 0.5.14 (anomalyco#52316)
0159356
@jlongster
fix(browser): hide browser tools unless a desktop is attached (anomal…
82bb5ff
…yco#52309)
@rekram1-node
fix(ai): classify Amazon Nova input token rejections as context overf…
599bdc9
…low (anomalyco#52131)
@nexxeln
test(acp): drive ACP tests through the wire protocol (anomalyco#52307)
7878744
@rekram1-node
fix(ai): route Cloudflare AI Gateway Claude and OpenAI through native…
b020f10
… passthroughs (anomalyco#52222)
@rekram1-node
fix(core): avoid reinjecting ancestor instructions (anomalyco#52364)
14636b9
@rekram1-node
fix(core): add namespaced session identity headers (anomalyco#52368)
f46fa72
@rekram1-node
fix(ai): make model capability defaults forward-compatible (anomalyco…
91b9bc5
…#52388)
@rekram1-node
feat(plugin): expose session removal (anomalyco#52387)
a923596
opencode
sync release versions for v2.0.21
dd2af0e
@cursoragent
chore(sync): merge upstream v2 through v2.0.21
210c16a
Merge anomalyco/opencode v2 at dd2af0e (sync release versions for v2.0.21). Keep the shuvcode package identity, fork workflow, and rich tool-error lowering.
@socket-security

socket-security Bot commented Oct 1, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​opentui/​core@​0.5.12 ⏵ 0.5.1498 +110094 +198 +2100
Updatednpm/​@​opentui/​keymap@​0.5.12 ⏵ 0.5.14100 +11009998 +1100
Updatednpm/​@​opentui/​solid@​0.5.12 ⏵ 0.5.14100 +110099 +198 +2100

View full report

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shuv1337
shuv1337 merged commit 62d4e02 into integration-v2 Oct 1, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@shuv1337 shuv1337 mentioned this pull request Oct 2, 2026
chore(sync): merge upstream v2 through v2.0.22 #372
Merged
2 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@shuv1337 @rekram1-node @Hona @simonklee @nexxeln @jlongster @OpeOginni @cursoragent
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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.