A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.
Rust agentagent-orchestrationaiai-agentsclaude-codecodexcoding-agentlinuxmacosmultiplayermultiplexerrustterminalterminal-emulatorterminal-multiplexertmuxtuiweztermwindows
ci: build and test on push
RoversX9231e1245841
diff --git a/.github/workflows/ci-probe.yml b/.github/workflows/ci-probe.ymldeleted file mode 100644index 2abb620b..00000000--- a/.github/workflows/ci-probe.yml+++ /dev/null@@ -1,132 +0,0 @@-# Temporary probe workflow.-#-# Confirms the tree still compiles on Linux and Windows before we invest in the-# full release pipeline. Linux has never compiled successfully in CI here, and-# the last green Windows build was 2026-06-06 (132 commits ago).-#-# Delete this file once the answer is known.--name: ci-probe--on:- push:- branches: ['ci/probe']- workflow_dispatch:- inputs:- linux:- description: Probe Linux- type: boolean- default: true- windows:- description: Probe Windows- type: boolean- default: true--# Cancel a superseded run when several commits are pushed back to back-concurrency:- group: ci-probe-${{ github.ref }}- cancel-in-progress: true--env:- CARGO_INCREMENTAL: '0'--jobs:- linux:- name: linux x86_64- # `inputs` is empty for push events, so fall through to running everything.- if: github.event_name != 'workflow_dispatch' || inputs.linux- runs-on: ubuntu-latest- # Backstop: a hung job would otherwise burn the default 6h, which on a- # private repo is 360 billed minutes.- timeout-minutes: 60-- steps:- - name: Checkout- uses: actions/checkout@v7- with:- submodules: recursive-- # third_party/lucide and third_party/simple-icons are include_bytes!'d by- # wezterm-gui/src/termwindow/ui/icons.rs, so an empty checkout of either- # fails the build 20 minutes in rather than here.- - name: Sanity check submodules- run: |- for d in deps/freetype/zlib \- deps/freetype/libpng \- deps/freetype/freetype2 \- deps/harfbuzz/harfbuzz \- third_party/lucide \- third_party/simple-icons ; do- test -n "$(ls -A $d 2>/dev/null)" || { echo "::error::submodule $d is empty"; exit 1; }- echo "ok $d"- done-- - name: Install Rust- uses: dtolnay/rust-toolchain@stable-- - name: Cache cargo- uses: Swatinem/rust-cache@v2- with:- # The probe is expected to go red and be retried; without this every- # retry recompiles all dependencies from scratch.- cache-on-failure: true-- - name: Install system deps- run: env CI=yes PATH=$PATH ./get-deps-- - name: Build- run: |- cargo build \- -p wezterm \- -p wezterm-gui \- -p wezterm-mux-server \- -p strip-ansi-escapes-- windows:- name: windows x86_64- if: github.event_name != 'workflow_dispatch' || inputs.windows- runs-on: windows-2022- # More headroom than Linux: the only datapoint we have (2026-06-06, release- # build with sccache) was 37m42s on this runner, and Windows bills at 2x, so- # a timeout here is the most expensive way to learn nothing.- timeout-minutes: 90-- env:- RUSTUP_WINDOWS_PATH_ADD_BIN: '1'-- steps:- - name: Checkout- uses: actions/checkout@v7- with:- submodules: recursive-- - name: Sanity check submodules- shell: bash- run: |- for d in deps/freetype/zlib \- deps/freetype/libpng \- deps/freetype/freetype2 \- deps/harfbuzz/harfbuzz \- third_party/lucide \- third_party/simple-icons ; do- test -n "$(ls -A $d 2>/dev/null)" || { echo "::error::submodule $d is empty"; exit 1; }- echo "ok $d"- done-- - name: Install Rust- uses: dtolnay/rust-toolchain@stable- with:- target: x86_64-pc-windows-msvc-- - name: Cache cargo- uses: Swatinem/rust-cache@v2- with:- cache-on-failure: true-- # openssl-src needs perl; Strawberry Perl ships on the runner but is not- # on PATH by default.- - name: Build- shell: cmd- run: |- PATH C:\Strawberry\perl\bin;%PATH%- cargo build -p wezterm -p wezterm-gui -p wezterm-mux-server -p strip-ansi-escapesdiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlnew file mode 100644index 00000000..10fb8696--- /dev/null+++ b/.github/workflows/ci.yml@@ -0,0 +1,108 @@+# Build and test on every push and pull request.+#+# Until this existed, nothing in .github/workflows ran automatically except a+# probe on one branch, and nothing anywhere ran `cargo test` on Windows or in+# a pull request. Two consequences were live in the tree at the time this was+# added: a stray attribute left the Windows build broken for a stretch of+# commits, and a test calling a function that had moved crates left+# `cargo test` on unix not compiling at all. Neither could have survived a+# green run of this file.+#+# Both platforms, because the two failures above were each invisible from the+# other one: the test that did not compile is `#[cfg(unix)]`, and the build+# that broke was Windows-only.++name: ci++on:+ push:+ branches: [main]+ pull_request:+ workflow_dispatch:++# Cancel a superseded run when several commits are pushed back to back+concurrency:+ group: ci-${{ github.ref }}+ cancel-in-progress: true++env:+ CARGO_INCREMENTAL: '0'++jobs:+ linux:+ name: linux x86_64+ runs-on: ubuntu-latest+ # Backstop: a hung job would otherwise burn the default 6h, which on a+ # private repo is 360 billed minutes.+ timeout-minutes: 90++ steps:+ - name: Checkout+ uses: actions/checkout@v7+ with:+ submodules: recursive++ - name: Check submodules+ run: bash ci/check-submodules.sh++ - name: Install Rust+ uses: dtolnay/rust-toolchain@stable++ - name: Cache cargo+ uses: Swatinem/rust-cache@v2+ with:+ key: ci-linux-x86_64+ cache-on-failure: true+ save-if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}++ - name: Install dependencies+ run: env CI=yes PATH=$PATH ./get-deps++ # `cargo test` compiles the whole workspace, binaries included, so this+ # is the build as well. --no-fail-fast because one crate's failure+ # should not hide the rest of the tree's.+ - name: Build and test+ run: cargo test --workspace --no-fail-fast++ windows:+ name: windows x86_64+ runs-on: windows-2022+ timeout-minutes: 90++ env:+ RUSTUP_WINDOWS_PATH_ADD_BIN: '1'++ steps:+ - name: Checkout+ uses: actions/checkout@v7+ with:+ submodules: recursive++ # `shell: bash` is required here; the default on Windows is pwsh.+ - name: Check submodules+ shell: bash+ run: bash ci/check-submodules.sh++ - name: Install Rust+ uses: dtolnay/rust-toolchain@stable+ with:+ targets: x86_64-pc-windows-msvc++ - name: Cache cargo+ uses: Swatinem/rust-cache@v2+ with:+ key: ci-windows-x86_64+ cache-on-failure: true+ save-if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}++ # openssl-src needs perl; Strawberry Perl ships on the runner but is not+ # on PATH by default. `cmd`'s builtin `PATH <value>` form, as the+ # release workflow uses.+ - name: Build and test+ shell: cmd+ run: |+ PATH C:\Strawberry\perl\bin;%PATH%+ cargo test --workspace --no-fail-fast++# The wasm32 portability sentinel runs on the same events, from its own file:+# see .github/workflows/wasm.yml.diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.ymlindex e92a4fef..6464d74a 100644--- a/.github/workflows/wasm.yml+++ b/.github/workflows/wasm.yml@@ -13,12 +13,12 @@# wasm (thread::spawn, SystemTime::now, fs) on the paths it exercises.name: wasm-sentinel-# Manual-only for now; flip the push trigger on when automatic coverage is-# wanted:-#-# push:-# branches: ["main"]+# A sentinel nobody runs is not one, and this is the only place the browser+# client is compiled for the target it actually ships to.on:+ push:+ branches: [main]+ pull_request:workflow_dispatch:concurrency:diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 887fb2b7..6fa3afe1 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -120,12 +120,19 @@ $ cargo test --allFormatting settings live in `.rustfmt.toml`.-### There is no CI on pull requests+### What CI does on a pull request-Everything in `.github/workflows/` runs only on manual dispatch, a push to the-`ci/probe` branch, or a `v*` tag. Nothing runs automatically when you open a-pull request. The commands above are the only check between a change and `main`,-so please actually run them.+`.github/workflows/ci.yml` builds and runs `cargo test --workspace` on Linux+and on Windows, and `wasm.yml` checks that the terminal core and the mux+protocol still compile for `wasm32-unknown-unknown`. Both run on every push to+`main` and on every pull request.++Nothing else does. `release.yml` is manual dispatch only, on purpose. The+browser client's own smoke suite (`thinkterm-web/smoke/`) needs a built bundle+and a real browser, and is not part of this.++Run the commands above anyway: they are faster than waiting for a runner, and+they are what tells you which of the two platforms you broke.## Documentation