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 upstream dev through 62e4641235 by LogicLyra · Pull Request #9 · LogicLyra/opencode-classic

Conversation

@LogicLyra

@LogicLyra LogicLyra commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Sync upstream dev through 62e4641235d7847dadc60da37cca8a023dd54fc1.
  • Preserve all OpenCode Classic identity, updater, installer, publisher, and
    fork-only push invariants.
  • Corrective commit: none.

Review

  • Base: 5c8d584c45abcafad7bd1127a9d22b7de2bcaf8f
  • Candidate: 0545e2a64f9b7c33595d855b72929901c5f9424e
  • Incoming commits (9):
    1. 542ba88602 fix(provider): select prompt cache keys by SDK (fix(provider): select prompt cache keys by SDK anomalyco/opencode#38424)
    2. fada1a538f fix(provider): serialize Mistral prompt cache keys (fix(provider): serialize Mistral prompt cache keys anomalyco/opencode#38448)
    3. 92cede0541 chore: update nix node_modules hashes
    4. e45210c6d2 chore(app): vendor v2 promise client (chore(app): vendor v2 promise client anomalyco/opencode#38467)
    5. 84c79c1399 chore: update nix node_modules hashes
    6. d03e0c5e54 feat(app): add dual-server compatibility (feat(app): add dual-server compatibility anomalyco/opencode#38462)
    7. 347510a73b chore: generate
    8. e59ba24b80 feat(app): support current event transport (feat(app): support current event transport anomalyco/opencode#38464)
    9. 62e4641235 chore: generate
  • Conflicts: bun.lock only (both-sides lockfile changes). Resolved by taking
    the fork's lockfile and running bun install to add upstream's new
    dependencies while preserving existing version resolutions (notably
    [email protected] and [email protected]). The other 5 overlap
    files (package.json, packages/core/package.json,
    packages/desktop/src/main/server.ts, packages/opencode/package.json,
    packages/session-ui/package.json) auto-merged cleanly with zero conflicts.
  • Merge strategy requested: merge commit, not squash or rebase

Scope

The 9 incoming commits add:

  • Dual-server compatibility (feat(app): add dual-server compatibility anomalyco/opencode#38462): new server-compat.ts and
    server-protocol.ts modules that detect whether the connected server speaks
    the v1 legacy API (/global/health) or the v2 current API (/api/health),
    and adapt event transport and API calls accordingly. Adds a vendored
    @opencode-ai/client promise client (opencode-ai-client-1.17.13.tgz).
  • Current event transport (feat(app): support current event transport anomalyco/opencode#38464): refactors server-sdk.tsx to support
    both legacy SSE events and current transport events, with delta coalescing
    for text/reasoning/tool/compaction streams. Removes the old heartbeat
    timeout mechanism.
  • Prompt cache key selection by SDK (fix(provider): select prompt cache keys by SDK anomalyco/opencode#38424): refactors
    provider/transform.ts to select cache keys based on SDK npm package rather
    than provider ID, with correct property names per SDK (promptCacheKey vs
    prompt_cache_key). Adds sdkKey() mappings for 11 additional providers.
  • Mistral prompt cache serialization (fix(provider): serialize Mistral prompt cache keys anomalyco/opencode#38448): adds promptCacheKey support
    to @ai-sdk/[email protected] via a vendored patch, bumps from 3.0.27.
  • Nix hash updates and generated test updates from the chore commits.

Fork overlap files auto-merged without conflict. The fork's isolated sidecar
env, desktop health-check, and dependency version changes are in different code
regions from the upstream additions.

Validation

  • Workstation control: ancestry verified (FORK and UPSTREAM are both
    ancestors of candidate), clean tree, diff-check passed (only upstream's
    patch file has trailing-whitespace warnings), remote main unchanged.
  • VM package gate: linux-ci-20260723T150932Z-0545e2a64f-package2, result
    PASS (all 10 stages: environment, static, dependencies, focused,
    typecheck, lint, broad-tests [208 httpapi pass/0 fail], builds, desktop-build,
    package-linux).
  • Lockfile resolution: [email protected] and [email protected]
    preserved; Storybook build passes. An initial candidate with a full lockfile
    regeneration resolved to 10.6.0/10.5.2, which failed Storybook build
    (Could not detect Solid version — a Bun workspace resolution bug in the
    newer storybook-solidjs-vite). Resolved by preserving the fork's lockfile as
    base and incrementally adding upstream's new dependencies.
  • Identity verification: deb package opencode-classic v1.18.4, maintainer
    LogicLyra, no AppImage.
  • Runtime visual gate: blocked by VM infrastructure (same AVX limitation as
    prior PRs; QEMU CPU version 2.5+ has no AVX, Electron 42.3.3 GPU SIGILL).
    Changed files are server protocol logic, provider transforms, and docs — no
    Electron/GPU initialization impact. Not a code defect.
  • Artifacts:
    • opencode-classic-desktop-linux-amd64.deb (127 MB)
    • opencode-classic-desktop-linux-x86_64.rpm (109 MB)
    • latest-linux.yml
  • Expected warnings: No published versions on GitHub (expected before first
    stable release); bun audit 9 pre-existing transitive-dep CVEs (tar,
    brace-expansion, sharp, fast-uri, axios, js-yaml) in build/docs tooling,
    identical to prior PRs, treated as advisory-only.
  • Untested/deferred: RPM-native installation (Ubuntu-only VM), macOS, Windows,
    runtime visual gate (VM AVX limitation).

No tag, release, publication, direct main push, or write to the official
upstream repository occurred. Please review and merge this PR on GitHub using
a merge commit.

Sorry, something went wrong.

Uh oh!

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

All reactions
rekram1-node and others added 10 commits July 22, 2026 22:37
@rekram1-node
fix(provider): select prompt cache keys by SDK (anomalyco#38424)
542ba88
@rekram1-node
fix(provider): serialize Mistral prompt cache keys (anomalyco#38448)
fada1a5
@opencode-agent
chore: update nix node_modules hashes
92cede0
@Brendonovich
chore(app): vendor v2 promise client (anomalyco#38467)
e45210c
@opencode-agent
chore: update nix node_modules hashes
84c79c1
@Brendonovich
feat(app): add dual-server compatibility (anomalyco#38462)
d03e0c5
@opencode-agent
chore: generate
347510a
@Brendonovich
feat(app): support current event transport (anomalyco#38464)
e59ba24
@opencode-agent
chore: generate
62e4641
@LogicLyra
chore: sync upstream dev through 62e4641
0545e2a
@github-actions github-actions Bot added needs:issue needs:compliance labels Jul 23, 2026
@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot removed the needs:compliance label Jul 23, 2026
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 23, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0545e2a64f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/app/src/context/server-sdk.tsx
Comment on lines +418 to +423
api: createCompatibleApi({
protocol: serverSDK.protocol,
current: serverSDK.currentApi,
legacy: (next) => serverSDK.createClient({ directory: next ?? directory, throwOnError: true }),
directory,
}),

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 23, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Route existing SDK calls through the compatibility layer

When the detected protocol is v2, this adds a compatible api beside the existing SDK, but the existing client/createClient surface remains the legacy @opencode-ai/sdk client that current app code already uses. Call sites such as prompt submission (sdk().client.session.promptAsync) and session bootstrap (serverSDK.client.session.list) do not read this new api property, so a v2-only server still receives legacy /session/... requests instead of /api/..., preventing sessions from being loaded or prompted unless those callers are migrated or the exposed client is made compatible.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/app/src/context/server-sdk.tsx
return { id: event.id, type: "question.replied", properties: event.data, current: event } as ServerEvent
if (event.type === "question.v2.rejected")
return { id: event.id, type: "question.rejected", properties: event.data, current: event } as ServerEvent
return { id: event.id, type: event.type, properties: event.data, current: event } as ServerEvent

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 23, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Convert current deltas before emitting them

For the v2 event stream, current events like session.text.delta, session.reasoning.delta, and session.tool.input.delta are emitted with those same type names here. The downstream session reducers only apply the legacy message.part.delta/message.part.updated shapes, and the coalescer still emits the unhandled session.*.delta type after concatenating, so live streamed text/reasoning/tool input from v2 servers is dropped until some later full snapshot or reload. Map these current delta events to the legacy part-delta/update shape or add reducer handlers before emitting them.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/app/src/utils/server-protocol.ts
Comment on lines +31 to +33
const current = await probe(server, fetch, "/api/health").catch(() => undefined)
if (current && "pid" in current && typeof current.pid === "number") return "v2"
if (current && "healthy" in current && current.healthy === true) return "v1"

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 23, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Treat pid-less /api/health responses as v2

When /global/health is unavailable, a v2 server generated from this repo's Protocol currently answers /api/health with just { healthy: true } (packages/protocol/src/groups/health.ts defines no pid), but this probe classifies that exact response as v1. That sends the new event transport and compatibility layer down the legacy endpoint path against current servers, so recognize a successful /api/health response as v2 or use another discriminator that matches the actual schema.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/app/src/context/server-sdk.tsx
return { id: event.id, type: "question.replied", properties: event.data, current: event } as ServerEvent
if (event.type === "question.v2.rejected")
return { id: event.id, type: "question.rejected", properties: event.data, current: event } as ServerEvent
return { id: event.id, type: event.type, properties: event.data, current: event } as ServerEvent

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 23, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Adapt v2 session deletion payloads before dispatch

When the current event stream emits the v2 session.deleted event, its payload can be just { sessionID } rather than the legacy { info } shape. Passing it through unchanged makes the existing session reducers read properties.info.id, so deleting a session from a v2 server can throw during event handling instead of removing it from the UI; translate this event to the legacy shape or update the reducers before dispatching it.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
@LogicLyra
LogicLyra merged commit 1aff781 into main Jul 23, 2026
10 of 15 checks passed

Uh oh!

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

@LogicLyra
LogicLyra deleted the sync-upstream-compat branch July 23, 2026 16:09
@LogicLyra LogicLyra mentioned this pull request Jul 25, 2026
chore: sync upstream through a85d8d23 (v1.18.5) #10
Merged
This was referenced Sep 14, 2026
sync: upstream v1.18.30 -- classic layout preserved, maintenance resumed #12
Merged
feat(app): localize chat import UI copy (61 locales) and sync translated READMEs #18
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

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

Assignees

No one assigned

Labels

needs:issue

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.

3 participants

@LogicLyra @rekram1-node @Brendonovich
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.