Skip to content

Agents need only a minimum version for chat; newer releases and prereleases keep working - #30393

Merged
brennanb2025 merged 9 commits into
mainfrom
brennanb2025/chat-agent-version-floor
Oct 22, 2026
Merged

brennanb2025 merged 9 commits into
mainfrom
brennanb2025/chat-agent-version-floor

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​254 $\color{#cf222e}{\Huge{\mathbf{−}}}$​273 $\color{#cf222e}{\Huge{\mathbf{−}}}$​19
Prod 36 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​344 $\color{#cf222e}{\Huge{\mathbf{−}}}$​273 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​71

ELI5

Orca only let OpenCode 1.x–2.x and Pi 0.x–1.x run as chats, refused every prerelease build, and treated a slow or failed version check as "unsupported". So the day OpenCode 3.0 or Pi 2.0 ships, new chats with it would fall back to a terminal (or a bare shell when opening an empty workspace automatically), existing chats would say "Orca can't run this agent in a chat here." (which names neither the agent nor a fix), and every new major version would need an Orca release.

Now each agent has only a minimum version. Anything newer runs, prereleases included. A version check that is slow or fails means "can't tell", so the chat runs. When a version really is too old, the chat says so by name: "OpenCode 1.2.0 is too old for chats. Update to 1.18.31 or newer."

What Changed

Before → after, as the user sees it

  • OpenCode 3.x, Pi 2.x, or any prerelease above the minimum: was refused (terminal for a new chat, "Orca can't run this agent in a chat here." for an existing one) → runs as a chat.
  • --version exiting non-zero or printing no version: a prompt result was refused → the chat runs. Slow local checks can already open a provisional chat after the existing 3-second admission timeout; this change lets startup proceed when the later version result remains unreadable. If the agent really cannot start, its own start failure says so.
  • A version below the minimum, in an existing chat: was "Orca can't run this agent in a chat here." → " is too old for chats. Update to or newer." The chat stays resumable: update the agent and send again. Codex already worked this way; OpenCode, OMP and Pi now do too.
  • A version below the minimum, for a new chat: unchanged (it routes the way an unsupported agent does today, and the + menu shows its chat row disabled).
  • The + menu (from feat(native-chat): + menu shows chat, disabled chat and CLI rows #29074): an agent's chat row was disabled for OpenCode 3.x, Pi 2.x or a prerelease above the minimum → it is clickable. A version Orca can't read leaves the row on this computer's own facts (clickable when the agent is installed), as before.

Mechanism

  • The per-agent allow-lists (isStableCliVersionOnLine, isStableCliVersionFrom, the OpenCode and Pi release-line tables) are replaced by one rule: each agent lists ascending minimum versions, and a version must reach the latest one on or below its own major line. A later major needs no entry. Comparison follows semver, so 3.0.0-beta.1 passes and 2.0.14-rc.1 does not.
    • OpenCode 1.18.31, 2.0.14 (2.0.14 is the first 2.x verified to start its private server child with the chat's account), OpenCode 2 2.0.14, OMP 17.0.5, Pi 0.84.0, Codex 0.136.0.
  • The version check now has four answers instead of yes/no: ready, too old (with both versions), unknown (slow, failed or wordless run), and missing (the program did not start). Only "too old" refuses a launch. Create support says no for "too old" or "missing", so a new chat's routing is unchanged for those.
  • Codex's own version reader and error are folded into the same check and the same error class.
  • The version is read from the CLI's output, stdout first, then stderr. Pi before 0.84 prints its version only on stderr; reading stdout alone would have called a real Pi 0.73 "unknown" and let it open as a chat (found in QA).
  • The + menu's per-host agent health snapshot (feat(native-chat): + menu shows chat, disabled chat and CLI rows #29074) reads the same check: ready shows the chat row available, too old shows it refused, unknown or missing shows it unknown. There is one version policy for create support, launch and the menu.
  • A too-old launch refuses as agent_session_operation_invalid / attachFailed with a new optional fact agentInstallation: {agent, installedVersion, minimumVersion}, the same refusal Codex already used. Codex refusals also keep sending the older codexInstallation fact. The message codexCliTooOld becomes cliTooOld with the agent's name in every locale.

Why

A list of approved releases fails the day an unlisted release ships, and folding "can't tell" into "unsupported" makes the route flip between chat and terminal on a slow machine. The common pattern is a minimum version only, an unreadable version that never counts as too old, and a too-old message naming the agent, the installed version and the needed one. Orca's Codex path already did this, so this change reuses it for every agent instead of adding the next major line.

Alternatives considered:

  • Adding OpenCode 3.x and Pi 2.x to the lists. That's smaller, but it breaks again at the next major and keeps the wordless refusal.
  • Gating on the ACP initialize protocol version instead of the CLI version. Rejected: the minimums encode behaviour the handshake doesn't report (Pi has no handshake, Pi below 0.84 never sends the event a chat turn waits on, OMP below 17.0.5 can't serve ACP), so the version floor stays. The handshake check is unchanged.

Differences from the common pattern

  • Intended: a new chat with a too-old agent still routes as today instead of showing a blocking banner. Orca also runs agents in terminals, and the + menu already shows that chat row as disabled before the start.
  • Temporary: in the + menu, a too-old agent's disabled chat row gives the same reason as an agent this host can't run, not "update to X". The start-failure text above is the only place that names the versions today; a menu reason for it is a follow-up. Follow-up: STA-11611.
  • Intended: OpenCode keeps a second minimum for its 2.x line (2.0.14). It is still a minimum, with no ceiling.
  • Intended: a version Orca can't read (slow, failing or wordless --version) lets the chat start, and lets the agent's models be listed. Some implementations of the common pattern instead show the agent as unavailable, or refuse the model listing, until a version is read. Orca follows the variant that blocks only a version it knows is too old, so a slow machine can't flip a chat between chat and terminal from one start to the next; if the agent really can't run, its own start or listing failure says so.
  • Accepted risk: an OpenCode 2.0.0–2.0.13 or Pi below 0.84 whose --version also fails would now run as a chat. Both need an old binary whose version check also breaks.

Review scope and size

Against the main commit integrated into this branch (90e99c48f4317f581258c967f7a5879a1332b681), the PR changes 618 production lines (including locale catalogs) and 536 test/fixture lines, excluding seven files the repo's pre-commit formatter reformatted while merging main (server-status-application.ts, server-status-update.ts and five test files: whitespace only, git diff -w is empty, no behavior). Version-check metadata declares each agent's minimums, and the shared check serves create support, launch and the host's agent snapshot.

Mixed versions and saved data

  • agentInstallation is a new optional field, both on the wire and in a chat's saved refusal facts. Older clients and builds keep only the facts they know, so they drop it and show their generic start failure for that agent.
  • Codex refusals also carry codexInstallation, so older clients' Codex text is unchanged.
  • Refusals saved by older builds with only codexInstallation still read as Codex's message.
  • No new operation and no change to the create-support answer's shape.

Hosts

  • The check runs on the machine that runs the agent: local, or a paired server.
  • SSH and WSL don't run these agents' chats, so nothing changes there.
  • The phone shows the host's words.

Linked Issue

N/A (maintainer). Tracked in the native-chat audit.

Visual Proof

Real Orca test copies, main vs this branch, same inputs, with real agent installs (macOS and Windows). Final head adf33ec; main = 90e99c48.

A too-old OpenCode in an existing chat (Windows, real OpenCode 1.18.19 set as the agent's command, after a relaunch). Main tells you to abandon the chat; the branch names the installed and required versions and keeps the chat.

Main This branch
main: OpenCode could not restart, start a new chat branch: OpenCode 1.18.19 is too old for chats. Update to 1.18.31 or newer.

After pointing the command back at a supported OpenCode (1.18.34), the same chat replies on both (branch on the right):

Main This branch
main: reply after restore branch: reply after restore

Pi 0.73.1 in the + menu (macOS, real Pi that prints its version only on stderr; Pi below 0.84 can't run a chat). Main offers the chat row and clicking it opens a failed chat; the branch disables the chat row and offers Pi in a terminal.

Main This branch
main: Pi chat row enabled branch: Pi chat row disabled, Pi (CLI) row
main: Pi chat could not be started branch: Pi 0.73.1 running in a terminal

Codex chat start, relaunch and resume behaved the same on both builds on both machines (branch shown): branch: Codex resumed chat second reply

Testing

  • I manually tested these changes locally
  • Automated tests added/updated

Tests cover the minimum rule (later majors and prereleases pass, the floor's own prerelease doesn't), unknown versus missing versus too old, OpenCode, OMP and Pi launches with too-old, newer and unreadable versions, Codex on the shared check, and the too-old sentence for a new refusal and for one saved by an older build.

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Author: @BrennanKB5

…releases and prereleases run

OpenCode chats accepted only the 1.x and 2.x lines and Pi only 0.x and 1.x,
every prerelease was refused, and a slow or failed --version run counted as
unsupported. A new major would open as a terminal and existing chats said
"Orca can't run this agent in a chat here."

Each agent now lists ascending minimum versions; a version must reach the
latest one on or below its own major line, compared by semver. The check
answers ready, too old, unknown (slow, failed or wordless run) or missing
(did not start). Only too old refuses a launch, as Codex already did, with
"<Agent> X is too old for chats. Update to Y or newer." carried in a new
optional refusal fact agentInstallation; Codex keeps sending
codexInstallation for older clients. Codex's reader and error fold into the
same check.
…nt-version-floor

# Conflicts:
#	src/main/acp/acp-launch-specs.ts
#	src/main/acp/acp-model-catalog-probe.test.ts
#	src/main/acp/acp-model-catalog-probe.ts
#	src/main/acp/acp-structured-launch-resolution.ts
@brennanb2025
brennanb2025 marked this pull request as ready for review October 18, 2026 18:59
@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c00b7498-d4a7-4284-b9c8-90129468b151
📥 Commits

Reviewing files that changed from the base of the PR and between adf33ec and 86d8284.

📒 Files selected for processing: 26
  • src/main/acp/acp-scripted-child.test-fixture.ts
  • src/main/acp/acp-tool-timeline.ts
  • src/main/codex/codex-structured-journal-translation-turn-lifecycle.test.ts
  • src/main/jsonl-rpc/timeline-final-tail.test.ts
  • src/main/jsonl-rpc/timeline-lane.ts
  • src/main/native-chat/agent-session-journal/journal-completed-content.test.ts
  • src/main/native-chat/agent-session-wire/agent-session-item-wire-form.test.ts
  • src/main/native-chat/agent-session-wire/agent-session-item-wire-form.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-failure-text.ts
  • src/main/pi/rpc-messages.ts
  • src/main/pi/rpc-session.ts
  • src/main/runtime/structured-agent-session-transport-overrides.ts
  • src/renderer/src/components/native-chat/NativeChatToolOutput.test.tsx
  • src/renderer/src/components/native-chat/NativeChatToolOutput.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/shared/agent-session-failure-copy.ts
  • src/shared/agent-session-failure-words.ts
  • src/shared/agent-session-refusal-details.ts
  • src/shared/agent-session-refusal-notice.ts
  • src/shared/agent-session-write-failure.ts
🚧 Files skipped from review as they are similar to previous changes: 7
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/es.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

📝 Walkthrough

The CLI version-check flow now compares detected versions with configured minimums and returns structured statuses. ACP, Pi, Codex, and structured runtime launch paths use these checks. Too-old versions produce shared installation errors, and installation details can pass through session refusal facts to generic localized failure messages. Tests were updated for the new result shapes and admission rules. Several unrelated code and test changes only reformat existing declarations and expressions.

Priority: ➖ Normal

Merge Risk: 🔵 Low · up to 86d82

The change is mergeable with awareness that matching version numbers can suppress a distinct agent warning and that some process-start errors can be reported as missing versions.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 58.82% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 51 functions across 66 files. (7 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly summarizes the main change: replacing fixed chat-version allow-lists with minimum-version support that permits newer releases and prereleases.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The pull request description is complete and follows the required structure. It includes a plain-language summary, user-facing changes, rationale and alternatives, maintainer issue handling, visual pr…
Full details: Description check

Explanation

The pull request description is complete and follows the required structure. It includes a plain-language summary, user-facing changes, rationale and alternatives, maintainer issue handling, visual proof, testing details, AI disclosure handling, scope notes, compatibility considerations, and implementation details. The Review and Checklist sections are not filled, but the required information is covered elsewhere and these omissions are non-critical.

Full details: Docstring Coverage

Explanation

Docstring coverage is 58.82% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 51 functions across 66 files. (7 skipped: 7 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

#29074 landed a per-agent "is this version string supported" predicate and a
supported/unsupported/inconclusive observation for the + menu's agent health
snapshot. Keep one version policy: an agent's launch check now returns the
shared minimum-version result (ready, tooOld, unknown, missing), create
support runs anything but tooOld or missing, and the health snapshot reads
ready as available, tooOld as refused and anything else as unknown.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ffe12be7-49c9-41bb-8b2f-dfa8c61ec5fe
📥 Commits

Reviewing files that changed from the base of the PR and between 4aba685 and 6db1592.

📒 Files selected for processing: 55
  • src/main/acp/acp-launch-specs.ts
  • src/main/acp/acp-model-catalog-probe.test.ts
  • src/main/acp/acp-model-catalog-probe.ts
  • src/main/acp/acp-structured-context-clear.test.ts
  • src/main/acp/acp-structured-launch-resolution-omp.test.ts
  • src/main/acp/acp-structured-launch-resolution-opencode.test.ts
  • src/main/acp/acp-structured-launch-resolution.ts
  • src/main/acp/acp-structured-launch-visuals.test.ts
  • src/main/acp/acp-visuals-skill.ts
  • src/main/agent-cli-version-probe.test.ts
  • src/main/agent-cli-version-probe.ts
  • src/main/codex/codex-cli-installation-error.ts
  • src/main/codex/codex-minimum-version.test.ts
  • src/main/codex/codex-structured-thread-open.ts
  • src/main/native-chat/agent-cli-installation-error.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-codex-version-recovery.test.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-failed-create-refusal.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-failure-text.ts
  • src/main/pi/rpc-configured-default.test.ts
  • src/main/pi/rpc-launch-resolution.test.ts
  • src/main/pi/rpc-launch-resolution.ts
  • src/main/pi/rpc-model-catalog-probe.test.ts
  • src/main/pi/rpc-model-catalog-probe.ts
  • src/main/pi/rpc-runtime-metadata.ts
  • src/main/pi/rpc-runtime-registration.test.ts
  • src/main/preflight/codex-cli-installation.test.ts
  • src/main/preflight/codex-cli-installation.ts
  • src/main/preflight/codex-workspace-relative-path.test.ts
  • src/main/runtime/scripted-codex-transport.test-fixture.ts
  • src/main/runtime/structured-agent-availability.test.ts
  • src/main/runtime/structured-agent-availability.ts
  • src/main/runtime/structured-agent-launch-support.test.ts
  • src/main/runtime/structured-agent-launch-support.ts
  • src/main/runtime/structured-agent-model-catalog-discovery.test.ts
  • src/main/runtime/structured-agent-runtime-metadata.ts
  • src/main/runtime/structured-agent-runtime-registration-types.ts
  • src/main/runtime/structured-agent-session-transport-overrides.ts
  • src/renderer/src/components/native-chat/agent-session-availability-words-text.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/shared/agent-cli-installation-problem.ts
  • src/shared/agent-session-failure-copy.ts
  • src/shared/agent-session-failure-words.test.ts
  • src/shared/agent-session-failure-words.ts
  • src/shared/agent-session-refusal-details.ts
  • src/shared/agent-session-refusal-notice.ts
  • src/shared/agent-session-visible-failures.ts
  • src/shared/agent-session-write-failure.ts
  • src/shared/codex-cli-installation.test.ts
  • src/shared/codex-cli-installation.ts
💤 Files with no reviewable changes: 1
  • src/main/preflight/codex-cli-installation.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

…create support and the agent health snapshot run the one shared check
#30713's OMP listing session uses the shared version check this branch already
calls; its test reads the version through the reader signature.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

🟡 Minor · Reserve missing for an ENOENT startup failure. · agent-cli-version-probe.ts:78

src/main/agent-cli-version-probe.ts:78
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Reserve missing for an ENOENT startup failure.

readAgentCliVersion currently marks every runProcess rejection as started: false. If the installed CLI rejects with EACCES, EPERM, or another error, checkAgentCliVersion reports missing instead of unknown. This prevents the normal launch path for an installed CLI whose version check failed.

Return started: false only when the startup error has code ENOENT. Return { version: null } for other startup errors.


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6f0c96d0-e614-40b5-ba5b-1f62baa3b1b7
📥 Commits

Reviewing files that changed from the base of the PR and between cb6e41c and adf33ec.

📒 Files selected for processing: 13
  • src/main/acp/acp-launch-specs.ts
  • src/main/acp/acp-model-catalog-probe.test.ts
  • src/main/acp/acp-model-catalog-probe.ts
  • src/main/agent-cli-version-probe.test.ts
  • src/main/agent-cli-version-probe.ts
  • src/main/agent-hooks/server/server-status-application.ts
  • src/main/agent-hooks/server/server-status-update.ts
  • src/main/daemon/pty-subprocess-spawn-file-foreground.test.ts
  • src/main/daemon/terminal-host-process-inspection.test.ts
  • src/main/github/github-remote-identity-parsing.test.ts
  • src/main/providers/local-pty-child-process-verdict.test.ts
  • src/main/providers/local-pty-provider-foreground-process.test.ts
  • src/renderer/src/i18n/locales/en.json
🚧 Files skipped from review as they are similar to previous changes: 1
  • src/renderer/src/i18n/locales/en.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

#28046's scripted transports read versions through the shared reader: the
Codex override keeps the reader type, and the ACP scripted child answers its
version probe with a release above every floor.
@brennanb2025

brennanb2025 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Review loop status: done (full path)

The problem. Orca only let a fixed list of agent versions run as chats: OpenCode 1.x–2.x, Pi 0.x–1.x, no prereleases. A version it couldn't read also counted as unsupported. So the day OpenCode 3.0 or Pi 2.0 ships, new chats with it fall back to a terminal, existing chats say "Orca can't run this agent in a chat here." (naming neither the agent nor a fix), and every new major needs an Orca release.

What changes for users. Each agent has only a minimum version; anything newer runs, prereleases included. A version Orca can't read no longer blocks the chat. A version that really is too old gets a named, fixable message in the chat, which stays resumable: "OpenCode 1.18.19 is too old for chats. Update to 1.18.31 or newer." The + menu reads the same check, so a too-old agent's chat row is disabled and its terminal row stays available.

Fixed during review

  • Stale Pi registration tests that still expected the old allow-list (round 1).
  • Main's + menu work (feat(native-chat): + menu shows chat, disabled chat and CLI rows #29074) had added a second version rule (a version it couldn't read refused the chat). Merged into the one rule: the + menu's agent snapshot, new-chat checks and launches all read the same minimum-version check.
  • Found in real QA: Pi before 0.84 prints its version only on stderr, so the branch read a real Pi 0.73.1 as "unknown" and offered it as a chat. The version is now read from stdout, then stderr. A fresh reviewer agreed, and QA confirmed it in the app.

Deferred / labelled

  • Temporary: in the + menu, a too-old agent's disabled chat row says "No chat on this host", not "update to X". The named message appears when an existing chat tries to start. A menu reason for this is a follow-up.
  • Accepted risk (unchanged): an OpenCode 2.0.0–2.0.13 or Pi below 0.84 whose version check also fails would run as a chat.

Verified

  • Review: round 1 (architecture challenger, launch/contract/user-flow reviewers, readiness and performance) and round 2 (merge with main and the follow-up simplification) found no remaining P0/P1. The three-model design panel ruled to keep the shared minimum-version design in one PR. Every main merge was re-checked with targeted tests, and CI is green on the head.
  • Real QA, main vs this branch with the same inputs, real agents under throwaway QA homes, Claude and Codex signed in through the team's load balancers:
    • Windows (real OpenCode 1.18.19 below its minimum): main says "OpenCode couldn't restart. Start a new chat to continue."; the branch shows the named version message, it survives a relaunch, and pointing the command back at OpenCode 1.18.34 lets the same chat reply.
    • macOS (real Pi 0.73.1): main offers a Pi chat that opens as a failed tab; the branch disables the chat row and opens Pi in a terminal.
    • Codex and Claude: chat start, reply, relaunch and resume behave the same on both builds. OpenCode and OpenCode 2 replies work on the branch.
    • No real agent config file changed (hook settings and logins hashed before and after every phase).
  • Not verified: no real OpenCode 3.x, Pi 2.x or prerelease build exists on the QA machines (covered by tests only); OMP and Pi replies weren't available (no sign-in on those machines); SSH and paired-server hosts weren't exercised. QA ran on adf33ec. The final head 75fe932 only adds a main merge whose only change to this PR's code is a test fixture's version stub; targeted tests and CI pass on it.

For Brennan's review

Main This branch
main: OpenCode could not restart branch: OpenCode 1.18.19 is too old for chats
main: Pi chat row enabled branch: Pi chat row disabled, Pi (CLI)
main: Claude resumed second reply branch: Claude resumed second reply

Places where a human call matters:

  1. src/main/agent-cli-version-probe.ts: the policy. Only a known too-old version or a binary that doesn't start keeps the terminal; an unreadable version runs.
  2. src/main/runtime/structured-agent-availability.ts: how the + menu snapshot maps the check (ready shows the row available, too old shows it refused, anything else unknown), and the generic "No chat on this host" label for too-old.
  3. src/main/acp/acp-launch-specs.ts: the minimums (OpenCode 1.18.31 / 2.0.14, OpenCode 2 2.0.14, OMP 17.0.5; Pi 0.84.0 and Codex 0.136.0 live beside their launchers).

Main was merged and checked at 86d8284: all six translations retain the minimum-version and both startup-timeout messages, the timeout rendering still resolves, and no old message key or maximum chat version was reintroduced; 18 named test files passed (300 tests), and full CI passed on this head.

…nt-version-floor

# Conflicts:
#	src/renderer/src/i18n/locales/en.json
#	src/renderer/src/i18n/locales/es.json
#	src/renderer/src/i18n/locales/fr.json
#	src/renderer/src/i18n/locales/ja.json
#	src/renderer/src/i18n/locales/ko.json
#	src/renderer/src/i18n/locales/zh.json
#	src/shared/agent-session-failure-copy.ts
…nt-version-floor

# Conflicts:
#	src/main/codex/codex-cli-installation-error.ts
#	src/main/codex/codex-minimum-version.test.ts
#	src/main/pi/rpc-session.ts
#	src/main/runtime/structured-agent-availability.test.ts
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.

1 participant