Skip to content

chore: upgrade terminal dependencies to matching payload betas - #27935

Merged
nwparker merged 3 commits into
mainfrom
codex/xterm-beta-payload-base
Oct 12, 2026
Merged

nwparker merged 3 commits into
mainfrom
codex/xterm-beta-payload-base

Conversation

@nwparker

@nwparker nwparker commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​238 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​233
Prod 20 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​823 $\color{#cf222e}{\Huge{\mathbf{−}}}$​801 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​22

ELI5

Upgrade the terminal dependencies together so inline images use the new upstream cell-payload storage. Existing terminal behavior stays the same; placeholder support remains in #26031.

What Changed

Pin all ten terminal packages (and the mobile app's three xterm pins) to matching betas built from commit c58ea363: core 6.1.0-beta.304, headless 6.1.0-beta.303, WebGL 0.20.0-beta.300, and the other addons' next matching betas. Regenerate existing source/package patches and lockfile hashes against that commit, retaining Orca's IME, search, serialization and image allocation fixes. Headless remains unpatched.

Upstream now stores physical image tile metadata in the cell payload, removing the duplicated image-attribute implementation. Seven installed-package contracts cover links/colors/text, payload isolation, foreign-payload replacement, the shared blank-cell reset, ordinary overwrite, insert/delete, reflow and alternate screens. The suite was checked against faults injected into the installed bundles.

build-serialize-addon-at-ref.mjs now reads the ref's own serialize version and patch, so the differential serialize fuzz can build main's baseline across a version bump (previously it failed on any bump).

Why

This provides a smaller storage foundation for #26031. Upgrading the family together satisfies addon peer requirements and keeps browser and execution-host terminal models on the same source revision. Separating the dependency migration from placeholders makes both changes independently reviewable.

Linked Issue

Refs #23615. Dependency base for #26031; this PR does not implement placeholders or close that issue.

Visual Proof

N/A — no intended visual change. The existing rendered image/cleanup test passes through real PTYs in a hidden Orca application.

Testing

  • 278 focused Node contracts pass, including existing terminal/IME regressions and five new payload cases.
  • All 62 dependency contracts pass under Bun.
  • Application typechecking, focused lint/formatting and frozen installation pass.
  • All five canonical source/package patches reproduce byte for byte against the published beta tarballs.
  • Hidden macOS Orca test passes twelve image terminals through two reset/close cycles with pixel and resource assertions.
  • All six platform persistence lanes and five Linux compatibility lanes pass.
  • Real IME (Wayland Hangul + X11) passes on PR CI and on a dispatched run.
  • Full E2E suite dispatched on this branch and compared test-by-test with main's daily full runs: the only PR-only failures (host-parked-pane-remote-viewer, native-chat-zcode-transcript) pass on targeted reruns; the rest also fail on main.
  • Differential serialize fuzz against main's serialize build passes with no skips.
  • Mobile frozen install, full mobile test suite and mobile typecheck pass.
  • Final broad PR CI passes.

Review

Local checks and full CI pass. This PR preserves the existing image limits and disposal fixes; no new placeholder, renderer composition, transport or restore feature is included. No RPC or stream format changes; host/client terminal packages remain matched.

Agent skill upstream boundary

  • Not applicable; no agent skill source changes.

Checklist

  • Focused dependency upgrade with compatibility tests.
  • Explained behavior, mechanism and approach.
  • Visual proof applicability stated.
  • Self-reviewed allocation, stale cell state, links and cleanup.
  • Cross-platform, remote and mixed-version impact considered.
  • Final CI passes.

@nwparker
nwparker marked this pull request as ready for review October 12, 2026 09:25
@coderabbitai

coderabbitai Bot commented Oct 12, 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: 175cbb4e-d162-464e-836d-7b4ff5c87898
📥 Commits

Reviewing files that changed from the base of the PR and between 564693f and 5925616.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (19)

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
📝 Walkthrough

Walkthrough

The configured xterm upstream commit and package versions advance, with matching patch paths updated. New tests cover image-cell payload isolation, text preservation, tile movement, resize reflow, and alternate-screen switching. Related tests and probe comments no longer identify behavior by the previous xterm version.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 59256

No actionable issue is established in the dependency update or image-payload tests. The change is mergeable after normal CI checks.

Pre-merge checks · Passed 4 · Failed 1

Failed Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 4 files. (3 skipped: 3… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks (4 passed)
Check name Status Explanation
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.
Title check Passed The title clearly and concisely describes the main change: upgrading terminal dependencies to matching beta versions for the new payload behavior.
Description check Passed The description is complete and directly addresses the required sections. It explains the change, rationale, linked issue, testing, scope, compatibility considerations, and checklist items. It also co…
Full details: Docstring Coverage

Explanation

Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 4 files. (3 skipped: 3 unsupported.)

  • Fix all pre-merge checks with AI
✨ 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.

nwparker and others added 2 commits October 12, 2026 15:26
…-at-ref across version bumps

- Cover foreign-payload replacement and the shared blank-cell reset in the
  installed image payload contract (both mutants previously survived).
- Bump mobile's xterm, webgl and unicode11 pins to the root's betas.
- Resolve the ref's own serialize version and patch so the differential
  fuzz baseline builds across a version bump.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nwparker
nwparker merged commit 125007b into main Oct 12, 2026
59 checks passed
akiya3 added a commit to akiya3/orca that referenced this pull request Oct 16, 2026
Resolve the xterm patch conflicts left by the beta.303 -> beta.304 bump
(stablyai#27935) and the consumed-key commit fix (stablyai#28441): the clause-selection
change is carried onto the beta.304 source patch, and the dist patch and
pnpm-lock.yaml patch hash are regenerated with
config/scripts/regenerate-xterm-patches.mjs (--check in sync).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01ULRg9j8BYaqbuCeANNH1AQ
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