You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(pty): run the jobs' terminal attaches on the Rust PTY host - #4825
.github/actions/setup-ci gains a pty-host input (Linux and macOS). It puts the Rust PTY host for the checkout's own crates/pty-sidecar where the server finds it, and nothing built from other sources:
the release for this version, checked against its manifest and crate tree, installed into bin/ (scripts/pty-sidecar.ts install, PTY host only, no ACP keeper);
else, as between a version bump and its release, the latest release's binary when its manifest names this crate tree, checked against the manifest's SHA-256;
else cargo build;
else the step fails, saying what to do (a self-hosted image from before its Rust layer has no cargo).
The step then fails unless the server's own check (rustSidecar()) takes the host. The jobs whose tests attach terminals turn it on: Fast checks, Integration tests, both browser regression jobs and the herdr-core live job (ci.yml, skipped on drafts), release-validate and the OMP compatibility job; scripts/ci-setup.test.ts pins that list. Node 22 stays installed: some test fixtures are Node programs.
Why
Until now those jobs had no Rust PTY host, so every terminal attach in CI ran on the Node sidecar, which is not what users run. This has to merge before the PR that removes the Node sidecar, or CI loses its only PTY host.
Owner's word for this workflow change (2026-11-26, relayed by the lead): "통계상 노드를 쓰는사람이 거의 없으면 3번 4번도 진행해" ("if almost nobody uses Node, go ahead with 3 and 4", where 3 is this CI change), then "아니야 통계 볼필요도없겠다 그냥 빼라" ("no, no need to look at stats, just remove it"). The change adds a build step; it removes or weakens no check and touches no secrets, permissions, triggers or fork handling.
Validation
Workflow tests: bun test scripts/ci-setup.test.ts scripts/privileged-jobs-workflow.test.ts scripts/workflow-expression.test.ts scripts/workflow-needs.test.ts scripts/release-validate-workflow.test.ts scripts/release-ci-reuse.test.ts scripts/light-runner-workflow.test.ts scripts/pty-sidecar-workflow.test.ts scripts/ci-concurrency.test.ts scripts/hook-kill-tests-workflow.test.ts scripts/ci-server-reach.test.ts scripts/ci-browser-reach.test.ts: 455 pass.
With the Rust host present (release v0.5.10's binary, whose crate tree is main's), on old-desktop: bun run check fast: all ok, unit 28743 pass / 0 fail. bun run check integration: 2858 pass; the 15 failures, all in server/claude-session.contract.test.ts, fail identically on origin/main on that PC, with and without the Rust host (environmental).
The new step run as written in a checkout: installs only the PTY host of release v0.5.10 (no ACP keeper) and the server's own check takes it (PTY host: Rust (…/bin/ovis-pty-sidecar)).
One Codex adversarial review (team proxy, gpt-6.2-sol-fast, xhigh), then one omo gate review; fixed in one round: general self-hosted runners may lack Rust (the step takes a released binary of this crate tree and builds only when none exists), a green run could still have attached on Node (the step now requires the server's own check), a host from another crate tree must never stand in (it no longer does: no tree match and no cargo fails the step), the herdr-core live job's TUI tests need the host (added, skipped on drafts), and nothing pinned the list of jobs (a test now does).
The step's two download paths, run by hand: scripts/pty-sidecar.ts install for this version, and the latest release (v0.5.10, crate tree d256ef23 = main's) checked against its manifest's SHA-256.
setup-ci's new pty-host input builds crates/pty-sidecar from the checkout, where the server finds it
when bin/ has no installed release binary. Check fast, the integration tests and the browser
regressions (and release-validate's and the OMP job's runs) attached terminals on the Node sidecar
until now; they now run on the host every release ships, so the Node sidecar can go.
…erver picks it
The release binary for the checkout's crate tree needs no Rust on the runner; only a crate tree no release
was built from is built with cargo. The step then asks the server's own check, so a job cannot pass with
its attaches on the Node sidecar. The herdr-core live job's TUI tests run on a PtySession too.
Auto incremental reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Chores
Expanded automated checks and release validation to cover the native terminal host across routine, integration, browser, and compatibility scenarios. The checks now verify that the expected host is selected, with a fallback build when installation is unavailable. These changes affect project validation workflows; no direct changes to app features or user-facing behavior are included.
The setup action adds an optional pty-host input. When enabled on non-Windows runners, it installs or builds the Rust PTY sidecar and checks host selection. Selected CI, compatibility, and release-validation jobs enable the option.
Changes: PTY host setup in CI
Layer / File(s)
Summary
Define and verify PTY host setup .github/actions/setup-ci/action.yml
The action adds the optional input, runs the installer or a locked release build if installation fails, and checks that the server selects the Rust host.
Enable PTY host setup in workflows .github/workflows/ci.yml, .github/workflows/omp-question-compat.yml, .github/workflows/release-validate.yml
Selected CI, compatibility, and release-validation jobs set pty-host to 'true'.
devswha/ovis#1908: Changes Rust PTY host selection, which the new rustSidecar() check verifies.
devswha/ovis#1859: Adds the release binaries and installer used by the new setup step.
devswha/ovis#4419: Changes the Rust toolchain contract used when the setup step builds the sidecar.
Merge Risk: Minimal · previous review f3fda
This change makes selected CI jobs use the Rust PTY host, with a check that confirms the server selected it. Nothing concrete was found that would break the affected jobs. The pull request title needs to be fixed to the type(scope): summary format so the title check passes.
Pre-merge checks: 4
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Title check
The title names the main change: the CI jobs' terminal attaches now run on the Rust PTY host, which matches the pty-host setup input and workflow changes. It uses a conventional commit prefix and is s…
Description check
The description follows the repository template's intent. It has a Change section that explains the problem (CI jobs ran terminal attaches on the Node sidecar instead of the Rust PTY host) and the res…
Full details: Title check
Explanation
The title names the main change: the CI jobs' terminal attaches now run on the Rust PTY host, which matches the pty-host setup input and workflow changes. It uses a conventional commit prefix and is specific, so a teammate scanning history would understand the primary change.
Full details: Description check
Explanation
The description follows the repository template's intent. It has a Change section that explains the problem (CI jobs ran terminal attaches on the Node sidecar instead of the Rust PTY host) and the resulting behavior (the setup-ci action gains a pty-host input with a fallback chain and a server-side check). It has a Validation section that lists the workflow test command with results, the fast and integration check runs with results and the known environmental failures, and the step run. The template asks for a linked issue for features. This is a CI change, not a feature, and no issue link is given, which is a minor gap. The description does not cover contract-test coverage for HTTP/WS changes, but this PR touches no HTTP/WS code. The Change section also mentions a relayed owner remark in Korean; that is context, not a required section.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Fix failing CI checks
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.
Reviewing files that changed from the base of the PR and between ba4d41e and f3fdaf9.
Files selected for processing: 4
.github/actions/setup-ci/action.yml
.github/workflows/ci.yml
.github/workflows/omp-question-compat.yml
.github/workflows/release-validate.yml
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 2 remain after this review.
Hold: merges after #4824 (the desktop app change), in the order the maintainer asked for, and only after the 0.5.11 release freeze.
devswha
changed the title
ci: run the jobs' terminal attaches on the Rust PTY host
ci(pty): run the jobs' terminal attaches on the Rust PTY host
Nov 26, 2026
… no Rust
A runner image from before the Rust layer has no cargo (nor gcc to link), and a crate tree no release
was built from, or a version bump whose release is not published yet, has no binary to install. Such a
job now attaches on the latest release's host, checked against that release's SHA256SUMS, with a
warning; ci.yml's Rust PTY host job still builds and tests the tree's own on GitHub's image.
…here there is none
Review round: the latest release's host stood in for any crate tree. It is now taken only when its
manifest names this checkout's crate tree (as between a version bump and its release); otherwise
cargo builds it, and a runner with neither fails with what to do. The herdr-core live job skips the
step on drafts, and a test pins pty-host on every job whose tests attach terminals.
Merged through pr-merge at head b368b354a. Seen before the merge was asked for: required checks green, no unresolved thread, no conflict, no hold, main not red, no release in progress. CodeRabbit said it did not review (a limit or a skip) since this head.
main moved but untouched: merged without update. Its new commits up to c2ccf2bed change no file of this pull request, none imported by one, nothing that decides which checks run, and no core path.
Reviews: one Codex adversarial review (team proxy gpt-6.2-sol-fast, xhigh) and the omo gate (dori review); fixed in one round (BLOCK at d2aa251 on a host from another crate tree standing in; fixed at 41b6990, no further review per the one-fix-round rule); CodeRabbit reviewed. Workflow change on the owner's word relayed by the lead (2026-11-26): "아니야 통계 볼필요도없겠다 그냥 빼라" (no need to look at stats, just remove it). It adds a step; it removes or weakens no check and touches no secrets, permissions, triggers or fork handling.
…y terminal (#4826)
## What
The Node PTY sidecar is removed. On Linux and macOS the Rust PTY host
(`crates/pty-sidecar`) runs every terminal the server attaches itself.
- `server/pty`: `pty-host.mjs` and `smoke.mjs` are gone; `PtySession`
spawns only the Rust host. Without one that passes its check, the server
says once, on stderr, why and how to get one (`bun
scripts/pty-sidecar.ts install`, `cargo build --release --manifest-path
crates/pty-sidecar/Cargo.toml`, or `OVIS_PTY_SIDECAR_BIN` in a folder
that is not mounted noexec), and herdr's panes are mirrored
(`sidecarAvailable()` is false). A host that ends by a signal the server
did not send is reported; the next attach starts a new one. An old
`OVIS_PTY_SIDECAR=node` is said once to be gone.
- `@lydell/node-pty` leaves `package.json`/`bun.lock`;
`scripts/server-artifact.ts` loses the node-pty staging, its pins and
`nodePty`.
- `install.sh`: no more Node install/link for terminals; when the Rust
host does not run it says so with the fix. (Node is still fetched,
temporarily and only where openssl 3 and node are both missing, for the
release signature check.)
- Remote PC bundles: no Node 22 or node-pty. Linux/macOS bundles now
require the Rust host (`HERDR_BUNDLE_PTY_SIDECAR`, which CI always sets)
and smoke-test it; the remote installer (`server/remote-host.ts`) checks
`bin/ovis-pty-sidecar` and runs it on a pty before activating. A
connection server from this commit installing the current `remote-v54`
bundle still works: that bundle carries the Rust host.
`REMOTE_BUNDLE_VERSION` is not raised here: per docs/development.md the
release PR raises it.
- Tests that forced the Node host now run on the Rust host;
`scripts/install-node-fallback.test.ts` becomes
`scripts/install-pty-host.test.ts` (the host check and architecture pick
only); `scripts/pty-sidecar-bench.ts` (Node vs Rust) is gone. Docs,
AGENTS.md and the plugin preflight no longer describe a Node fallback
(the crate's README is left with the crate, below).
## Where the Rust host cannot run
noexec mounts, containers that cannot open a pty, and source checkouts
with no matching binary now end with a clear message and mirrored panes
instead of the Node fallback. A checkout of main whose
`crates/pty-sidecar` changed since the release gets a binary from the
daily beta's `pty-sidecar-<tree>` prerelease
(`.github/workflows/beta.yml`), or from `cargo build` at once. This PR
leaves the crate exactly as released (its tree stays d256ef2), so every
install keeps taking the release's binary. The crate's own README and
comments still name the Node host; they change with the crate's next
code change.
Depends on #4825 (the CI change: it must merge first so CI has the Rust
host) and contains #4824 (the desktop app). Until they merge, this PR's
diff shows their commits too; its own changes are in the commits after
them.
Owner's decision (2026-11-26, relayed): "아니야 통계 볼필요도없겠다 그냥 빼라" ("no need
to look at stats, just remove it").
## Validation
- `bun run typecheck`: ok. Focused: `bun test server/pty
scripts/remote-bundles-workflow.test.ts scripts/server-artifact.test.ts
scripts/install-pty-host.test.ts scripts/pty-sidecar.test.ts
server/usage-login-private.test.ts server/conventions.test.ts
scripts/conventions.test.ts scripts/ci-setup.test.ts
scripts/ci-test-timings.test.ts scripts/fixed-waits.test.ts
server/machines.test.ts`: 307 pass.
- On old-desktop with the Rust host, at this head: `bun run check fast`:
unit 28714 pass, 1 fail (`server/account/device-journal.test.ts` G15, a
30 s timeout under the full run's load; 16/16 alone, three times). `bun
run check integration`: 2832 pass; its 15 failures are the
`claude-session.contract` ones that fail the same on origin/main there.
`bun scripts/ui-terminal-regression.ts`: exit 0 (27 PASS).
`app/electron` `bun test scripts`: 31 pass.
`scripts/output-browser-qa.ts` fails on that PC on origin/main too (with
either host), so it is left to CI's runner image.
- The remote installer's new smoke command, run by hand: passes the real
host with an empty PATH, refuses `/usr/bin/true`.
- One Codex adversarial review (team proxy, gpt-6.2-sol-fast, xhigh),
fixed in one round: remote bundle CI had no Rust host (HIGH: the PR
job's Node-only bundle and the tag's ssh job now build with it), the
herdr-core live job had none (HIGH: fixed in the CI PR), smoke tests
that `/usr/bin/true` passed (identity check added), a vanished host's
error now says how to fix it, an earlier install's private Node stays on
install.sh's PATH for the signature check, and install.sh counts a
cargo-built host. Left as is: installing a pre-Rust-host release
(v0.4.x) through `OVIS_REF` on a PC without Node no longer gets Node
installed for it; a host removed after startup is not switched to
mirroring at runtime (the attach fails with the fix in its message);
`REMOTE_BUNDLE_VERSION` stays for the release PR, as docs/development.md
says.
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
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.
What
.github/actions/setup-cigains apty-hostinput (Linux and macOS). It puts the Rust PTY host for the checkout's owncrates/pty-sidecarwhere the server finds it, and nothing built from other sources:bin/(scripts/pty-sidecar.ts install, PTY host only, no ACP keeper);cargo build;The step then fails unless the server's own check (
rustSidecar()) takes the host. The jobs whose tests attach terminals turn it on: Fast checks, Integration tests, both browser regression jobs and the herdr-core live job (ci.yml, skipped on drafts), release-validate and the OMP compatibility job;scripts/ci-setup.test.tspins that list. Node 22 stays installed: some test fixtures are Node programs.Why
Until now those jobs had no Rust PTY host, so every terminal attach in CI ran on the Node sidecar, which is not what users run. This has to merge before the PR that removes the Node sidecar, or CI loses its only PTY host.
Owner's word for this workflow change (2026-11-26, relayed by the lead): "통계상 노드를 쓰는사람이 거의 없으면 3번 4번도 진행해" ("if almost nobody uses Node, go ahead with 3 and 4", where 3 is this CI change), then "아니야 통계 볼필요도없겠다 그냥 빼라" ("no, no need to look at stats, just remove it"). The change adds a build step; it removes or weakens no check and touches no secrets, permissions, triggers or fork handling.
Validation
bun test scripts/ci-setup.test.ts scripts/privileged-jobs-workflow.test.ts scripts/workflow-expression.test.ts scripts/workflow-needs.test.ts scripts/release-validate-workflow.test.ts scripts/release-ci-reuse.test.ts scripts/light-runner-workflow.test.ts scripts/pty-sidecar-workflow.test.ts scripts/ci-concurrency.test.ts scripts/hook-kill-tests-workflow.test.ts scripts/ci-server-reach.test.ts scripts/ci-browser-reach.test.ts: 455 pass.bun run check fast: all ok, unit 28743 pass / 0 fail.bun run check integration: 2858 pass; the 15 failures, all inserver/claude-session.contract.test.ts, fail identically on origin/main on that PC, with and without the Rust host (environmental).PTY host: Rust (…/bin/ovis-pty-sidecar)).scripts/pty-sidecar.ts installfor this version, and the latest release (v0.5.10, crate tree d256ef23 = main's) checked against its manifest's SHA-256.