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(ci): build the Rust client for every target by simonklee · Pull Request #66152 · anomalyco/opencode

Conversation

@simonklee

@simonklee simonklee commented Nov 24, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member
  1. check-cli-rs: tests the Rust client
  • When it runs: on a pull request that changes packages/cli-rs, and on pushes to dev that change the Rust client or the TypeScript packages it copies (TUI, CLI, protocol, schema and so on). Other teams' pull requests never trigger it.
  • What it does: it checks formatting, runs the linter (clippy) and all the Rust tests. Then it checks that the Rust files generated from TypeScript are still up to date.
  1. release-cli-rs: builds and publishes opencode-native
  • Builds: five versions, Linux (Intel and ARM), macOS (Intel and Apple Silicon) and Windows. The Linux builds also work on old distributions, back to glibc 2.17. Each build is packed into a .tar.gz with the licence files.
  • On a pull request that changes this workflow: it only builds, as a test.
  • On a cli-rs-v tag: it also publishes a GitHub release with those archives and their checksums. That release is never marked "Latest", so OpenCode's own updater ignores it.
  1. packages/cli-rs/AGENTS.md: it lists what CI runs, plus the checks still to run locally before merging: the interop tests that need an opencode binary, and the machine parity tests.

Sorry, something went wrong.

Uh oh!

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

All reactions
@simonklee
simonklee requested a review from thdxr as a code owner November 24, 2026 18:14
@simonklee simonklee changed the title chore(ci): check the Rust client chore(ci): build the Rust client for every target Nov 24, 2026
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

I found nothing that should block a merge. I couldn't run the workflows: the sandbox has no Rust toolchain and no Actions runner. I did run the parts that work offline. notices/queries.py matched all 36 query files and wrote 9 licences. check-linux-floor.sh passes bun and fails a glibc 2.38 python3 as it should. The mock provider streams valid chunks, and pty.py exits correctly both when the marker appears and when it times out. Both workflow files parse, and the scripts, build options and env vars they reference all exist.

Public API: unchanged. This adds CI workflows and scripts only.

Two points worth a look, both inline:

  • The path filter on check-cli-rs.yml means a TypeScript change that leaves cli-rs's generated files stale won't be caught.
  • Smoke 4b on Windows depends on whatever @opencode/cli@latest is on npm.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread .github/workflows/check-cli-rs.yml
on:
pull_request:
paths:
- packages/cli-rs/**

@opencodejr opencodejr Bot Nov 24, 2026

Copy link
Copy Markdown
Contributor

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.

check:drift reruns generators and oracles that read TypeScript outside this package (@opencode/protocol, @opencode/plugin, @opencode/tui, the httpapi codegen), and the parity machines run the TypeScript TUI. A PR that only touches those packages can leave cli-rs's generated files or fixtures stale. With this filter neither that PR nor the push to dev runs the check, so the failure lands on the next unrelated cli-rs PR. Could you add those source paths, at least for push to dev?

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread .github/workflows/build-cli-rs.yml Resolved

Uh oh!

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

@simonklee
simonklee force-pushed the cli-rs-ci branch from 5a111ea to 592bdf0 Compare November 24, 2026 18:26
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Both earlier points are fixed: check-cli-rs.yml now triggers on the TypeScript packages its checks compare against, and the npm-dependent Windows smoke test is gone. I couldn't run the workflows here (no Rust toolchain or Actions runner), so this pass is from reading the diff against script/opentui-native.ts.

Public API: unchanged (CI only).

New points, inline:

  • The release build fetches the runner's own OpenTUI library, so the musl targets link the glibc archive.
  • Released archives ship no licence or notice files for the statically linked OpenTUI/FFmpeg code.
  • The check workflow dropped parity:machines and OPENCODE_RS_REQUIRE_TS.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread .github/workflows/release-cli-rs.yml Resolved

Uh oh!

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

Comment thread .github/workflows/check-cli-rs.yml Outdated
# `bun run cargo` first fetches OpenTUI's native library.
- run: bun run cargo fmt --check
- run: bun run cargo clippy --locked --workspace --all-targets -- -D warnings
- run: bun run cargo test --locked --workspace

@opencodejr opencodejr Bot Nov 24, 2026

Copy link
Copy Markdown
Contributor

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.

This now runs less than packages/cli-rs/AGENTS.md requires before a merge: parity:machines is gone, and without OPENCODE_RS_REQUIRE_TS=1 the interop and service-lifecycle tests skip quietly instead of failing when Bun, the TypeScript checkout or an opencode binary is missing. The previous revision set that variable and built opencode onto PATH. If dropping them is deliberate, AGENTS.md's checks list should change to match.

Sorry, something went wrong.

Uh oh!

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

All reactions
@simonklee
simonklee force-pushed the cli-rs-ci branch from 592bdf0 to c4d32ac Compare November 24, 2026 18:57
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

The musl half of the release-archive thread no longer applies, since the musl targets were dropped. Its licence half is still open: the archives ship the binary alone, with no LICENSE or OpenTUI/FFmpeg licence files. The thread about parity:machines and OPENCODE_RS_REQUIRE_TS is also still open. I couldn't run the workflows here (no Rust toolchain or Actions runner), so this is from reading the diff.

Public API: unchanged (CI only).

New: check-cli-rs.yml no longer runs bun run check:drift, which packages/cli-rs/AGENTS.md lists as required before a merge. Stale generated files or parity fixtures now reach dev unnoticed, even though the workflow's TypeScript path filter was added partly so that drift gets caught. Either keep the step or update AGENTS.md to match.

Also worth knowing: building Linux on ubuntu-22.04 means the released binaries need glibc 2.35 or newer, so they won't run on RHEL 8/9, Debian 11 or Ubuntu 20.04.

Sorry, something went wrong.

Uh oh!

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

All reactions
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Both open threads are fixed: dev pushes now run the check on the TypeScript packages it reads, and AGENTS.md now matches what CI runs and lists the checks to run locally. I couldn't run the workflows here (no Rust toolchain or Actions runner). I did run the Zig compiler wrapper's argument filter in sh: it drops the two flags and keeps arguments with spaces intact. The glibc 2.17 setup and the archive's licence files also look right.

Public API: unchanged (CI and docs only).

One new point, inline: check:drift is added while its own comment says it fails today.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread .github/workflows/check-cli-rs.yml
- run: bun run cargo clippy --locked --workspace --all-targets -- -D warnings
- run: bun run cargo test --locked --workspace
# Fails until the cli-rs port PR (native-next-12) lands: dev lacks the files it regenerates.
- run: bun run check:drift

@opencodejr opencodejr Bot Nov 24, 2026

Copy link
Copy Markdown
Contributor

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.

The comment says this step fails until the port PR lands. If this PR merges first, check-cli-rs fails on every cli-rs PR and on every matching dev push until then, and a check that is always red stops getting looked at. Could this PR merge after the port PR, or the step use continue-on-error: true until then?

Sorry, something went wrong.

Uh oh!

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

All reactions
@simonklee
simonklee force-pushed the cli-rs-ci branch from 73a6eff to 7d0d365 Compare November 26, 2026 14:07
opencodejr[bot]
opencodejr Bot reviewed Nov 26, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

This push is a rebase onto dev; the workflows and AGENTS.md are unchanged since my last review. The path-filter and AGENTS.md points were fixed in the previous revision and still are. The check:drift step is still marked as failing until the port PR lands, so that thread stays open. Nothing new to add.

Public API: unchanged (CI and docs only).

Sorry, something went wrong.

Uh oh!

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

All reactions
@simonklee simonklee mentioned this pull request Nov 26, 2026
fix(cli-rs): port selection colours and ACP fixes, and regenerate bindings #66652
Merged
@simonklee
simonklee force-pushed the cli-rs-ci branch from 7d0d365 to d046ec7 Compare November 26, 2026 22:40
opencodejr[bot]
opencodejr Bot reviewed Nov 26, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

This push is a rebase onto dev; the workflows and AGENTS.md are unchanged since my last review. The path-filter and AGENTS.md points were fixed earlier and still are. The check:drift step is still marked as failing until the port PR lands, so that thread stays open. Nothing new to add.

Public API: unchanged (CI and docs only).

Sorry, something went wrong.

Uh oh!

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

All reactions
@simonklee
simonklee force-pushed the cli-rs-ci branch from d046ec7 to cd3fb16 Compare November 27, 2026 09:21
opencodejr[bot]
opencodejr Bot reviewed Nov 27, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

The workflows and AGENTS.md are unchanged since my last review. The check:drift thread stays open, since that step still says it fails until the port PR lands.

The new commits look fine. The regenerated API and plugin bindings match the TypeScript protocol's new space.write/space.sync shapes, and rerunning the Luau type generator gave no diff. I couldn't regenerate the Rust API code or run the reworked tests here (no Rust toolchain). The tests now hold a request until the test releases it instead of waiting for idle, which removes the race without sleeps.

Public API: unchanged. The Rust client's bindings follow API changes already on dev.

Sorry, something went wrong.

Uh oh!

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

All reactions
opencodejr[bot]
opencodejr Bot reviewed Nov 27, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

The check:drift thread is resolved: the step no longer says it fails, and this PR now carries the regenerated bindings it compares. --no-fail-fast in CI and in AGENTS.md is fine. I couldn't run the workflow here (no Rust toolchain). Nothing new to add.

Public API: unchanged (CI and docs only).

Sorry, something went wrong.

Uh oh!

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

All reactions
@simonklee simonklee mentioned this pull request Nov 27, 2026
fix(cli-rs): port provider order and the service.json refusal, and fix CI-only test races #66776
Merged
simonklee added 5 commits November 27, 2026 18:39
@simonklee
chore(ci): check the Rust client
a7fa524
@simonklee
chore(ci): build and release the Rust client
819929a
@simonklee
chore(ci): check the Rust client on its own pull requests and on dev
1356285
@simonklee
ci
1a1782d
@simonklee
fix(ci): run every Rust test crate when one fails
3d08751
Cargo stops at the first crate whose tests fail, so each run on GitHub
showed one failure and hid the rest. With --no-fail-fast one run shows
them all. Also drops the comment that said check:drift fails until an
old port PR lands; it passes on dev now.
@simonklee
simonklee force-pushed the cli-rs-ci branch from 1d12b3c to 3d08751 Compare November 27, 2026 17:39
opencodejr[bot]
opencodejr Bot reviewed Nov 27, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

This push is a rebase onto dev; the workflows and AGENTS.md are unchanged since my last review, and the regenerated bindings and test fix that dropped out are already on dev. All earlier points stay addressed. Nothing new to add.

Public API: unchanged (CI and docs only).

Sorry, something went wrong.

Uh oh!

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

All reactions
thdxr
thdxr approved these changes Nov 27, 2026
View reviewed changes
@thdxr
thdxr merged commit d707609 into dev Nov 27, 2026
17 of 18 checks passed

Uh oh!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments
@thdxr thdxr thdxr approved these changes

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.

2 participants

@simonklee @thdxr
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 01402775 — 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.