Commit Graph
8610 Commits
Author SHA1 Message Date
Joe Xue e46fe38c5a fix: tmux -CC unicode input (#7154)
refs: #7144
2026-06-27 11:08:29 +02:00
tooknox 09e52dd85c docs: add installation steps for Gentoo Linux (#7876) 2026-06-23 21:23:01 +02:00
crimist 6ff5492866 wayland: fix protocol error when buffer size isn't a multiple of buffer_scale (#7746)
ref: #7333
2026-06-22 12:01:02 +02:00
Benoit de Chezelles 9edc0c09fc refactor(wayland): share one CopyPasteOffer across all windows (#7869)
Previously each window held its own CopyAndPaste (one per surface),
causing the data_device selection handler to broadcast the incoming
offer to every window on each clipboard change.

Since the compositor sends one selection event per client (not per
surface), a single shared CopyPasteOffer on WaylandState is sufficient.
The broadcast loop is replaced by a single confirm_selection() call.

Also add doc comments on all clipboard-related fields in WaylandState.

Assisted-by: Claude Sonnet 4.6; iterated, reviewed & tested manually

ref: #6685
2026-06-21 22:47:48 +02:00
zakradandBenoit de Chezelles d6e1859782 fix(term): avoid divide-by-zero crashes in inline image placement (#7872)
assign_image_to_cells contained two unguarded divisions that could panic
with 'attempt to divide by zero' and take down the pane (and, under the mux,
the pane's reader thread):

1. A Kitty graphics escape requesting a zero-sized placement (eg: an explicit
   w=0/h=0, or a source origin outside the image bounds) yields a
   draw_width/draw_height of 0, used as a divisor when sizing the image.
   This is the case reported in #6344.

2. Displaying a cell-sized image (one without explicit c=/r=) on a pane whose
   pty reported no pixel dimensions makes cell_pixel_width/height 0, which is
   then used as a divisor. A zero pixel size is the default PtySize and is what
   tmux/headless domains report, so a perfectly valid image crashes there.

Guard both: refuse the placement when the drawable region or the cell pixel
size is zero.
The error flows into the existing logging handlers for the Kitty, iTerm and
Sixel paths, so no callers change.
Real GUI panes always have a non-zero pixel size, so valid images are
unaffected.

Adds regression tests for both cases (each panics on main, passes with the
fix) and enables kitty graphics in the test terminal config (off by default)
so the path is exercised.

Closes #6344

---------

Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-06-21 22:45:33 +02:00
Benoit de Chezelles c4b1d89fd3 docs: changelog for #7787 2026-06-20 00:45:09 +02:00
Mikhail f. Shiryaev aea9b9f2e2 Fix ESC key encoding in kitty mode with disambiguate flag (#7787) 2026-06-20 00:38:14 +02:00
Benoit de Chezelles cd4b4fd27c nix: Fix nix-continuous gha workflow 2026-06-19 10:08:49 +02:00
Benoit de Chezelles 65c1c1f17e docs: Update changelog for recent merges 2026-06-17 23:11:51 +02:00
Benoit de Chezelles 988133f533 docs: Improve 'see also' links between QuickSelect & QuickSelectArgs 2026-06-17 23:11:22 +02:00
Mikhail f. ShiryaevandBenoit de Chezelles ba54898cf2 quickselect: Improve UX by filtering non-matching labels (#7752)
* Improve UX for quick selection: hide non-matching labels
* Simplify & remove redundant tests, use pre-existing `recompute_results`

---------
Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-06-17 22:38:32 +02:00
Benoit de Chezelles 95ffc53235 nix: Revert use of inputs.self.submodules — breaks github: inputs (#7867)
refs:
- https://github.com/wezterm/wezterm/pull/7854#issuecomment-4718011398 (previous attempt)
- https://github.com/NixOS/nix/issues/13571
- https://github.com/NixOS/nix/issues/14982
2026-06-16 16:05:35 +02:00
Benoit de Chezelles b1cc82bb51 fix: prevent infinite loop when pane search regex fails (#7864)
`fancy_regex` returns Err (e.g. backtracking limit exceeded)
without advancing the iterator position, causing `captures_iter`
to loop forever on the same offset. 😬
👉 Break out and warn instead.

fixes: #7773
2026-06-16 09:42:32 +02:00
Benoit de Chezelles 1ec372f179 docs: Fix link to Matrix room to be client agnostic 2026-06-16 09:28:50 +02:00
Benoit de ChezellesandXeroOl 40daec8934 fix: Save wayland selection offer to every surface (#7863)
In Wayland, when something is copied to the clipboard, an "offer"
is given to every "device". WezTerm holds these offers in a
'CopyAndPaste' struct, and reads from the offer when the user presses
paste. WezTerm has one 'CopyAndPaste' for each window.

When WezTerm receives a data offer, it previously only saved it to
one 'CopyAndPaste' based on the active surface id.
With this change, it writes it to every CopyAndPaste.

Fixes #6685
Replaces #7034

---------

Co-authored-by: XeroOl <xerool@protonmail.com>
2026-06-16 00:20:39 +02:00
Benoit de Chezelles 956d905835 nix: Simplify flake.nix; update Nix-related workflows (#7854)
- ci/cd: Update nix-related workflows

- nix: Simplify flake.nix

  With recent enough Nix we can now remove the explicit submodules
  dependencies and let Nix do the heavy lifting.
  Improve Nix code to match modern Nix standards (finalAttrs).

- Includes #4986 with comments, for nicer package version
- Lock actions to a major branch, at least
- Various tweaks and readability improvements
- Only push built result to Cachix if workflow triggered
  by schedule or manual workflow_dispatch event
2026-06-15 20:47:52 +02:00
Leo Heitmann Ruiz 69d1fb3ef0 docs: Update Flathub badge (#7831)
ref: https://flathub.org/en/badges
2026-06-14 19:16:20 +02:00
Tautik Agrahari 891bed31b7 docs: fix linuxbrew install command (#7768) 2026-06-10 15:08:05 +02:00
Xuntao Chi 8afe0ad307 pty: windows: fix kill() (#7709)
Fix inverted logic when considering the return value from the TerminateProcess call.
2026-06-07 08:24:27 +01:00
Anton Novoselov 29d01fc8e5 fix: prevent stack overflow from process tree cycles in build_proc (#7706)
The `build_proc` function in procinfo recursively walks the process
tree to build child process information. If a cycle exists in the
parent PID chain (which can happen on Windows in particular due to PID
reuse or race conditions during process snapshot enumeration),
the recursion never terminates and overflows the stack.

Add a `visited` HashSet to track already-visited PIDs and skip them,
preventing infinite recursion. Applied to all three platforms (Windows,
Linux, macOS)

Fixes #7705
Related: #6671
2026-06-07 08:22:04 +01:00
KOGA Mitsuhiro 900bab10d6 Fix RefCell borrow conflict when toggling IME on Windows (#7529)
* Fix RefCell borrow conflict when toggling IME on Windows

When IME is active, the `key` function was holding a borrow on the
window's inner RefCell while calling `TranslateMessage`. This Windows
API can trigger other window messages (like WM_SIZE) via
`CtfImeCreateInputContext`, which then attempt to borrow the same
RefCell, causing a panic with "RefCell already borrowed".

Similarly, `ime_set_context` was holding a borrow while calling
`DefWindowProcW`, which can also trigger recursive window messages.

Fix by dropping the borrow prior to triggering potentially recursive calls.

Fixes the crash that occurred when toggling IME (e.g., pressing
Hankaku/Zenkaku key) after splitting a pane on Windows.
2026-06-07 08:17:27 +01:00
093bf6bf2b nix: Update flake.lock (#7463)
* flake.lock: Update

  Flake lock file updates:

  • Updated input 'nixpkgs':
      'github:NixOS/nixpkgs/23258e0' (2025-11-30)
    → 'github:NixOS/nixpkgs/f3ce60d537 (2026-06-06)
  • Updated input 'rust-overlay':
      'github:oxalica/rust-overlay/3bfa664' (2025-11-30)
    → 'github:oxalica/rust-overlay/27b7e78c6 (2026-06-06)

* fix(flake): remove deprecated xorg.* package aliases

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Alex Wicks <alex@awicks.io>
Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-06-07 01:32:57 +02:00
Benoit de Chezelles 05c5c9cc15 docs: changelog for #7137 & #7710 2026-06-06 15:53:43 +02:00
Wez Furlong 8a8cf6a75f docs: update for build/distro changes 2026-06-06 11:47:17 +01:00
Wez Furlong 3054d107fd ci: deploy: match cygwin -> windows as well 2026-06-06 11:46:14 +01:00
Wez Furlong 62fcc23bf8 ci: bump windows, add debug
The OSTYPE isn't matching in the deploy script any longer, which
suggests that "something changed" in the image.  Let's explicitly
point to a newer image: that was previously blocked because the
installer tools were not present.  The associated issue has been
closed, so since we're broken right now anyway, let's move this
up and troubleshoot on the newer image.
2026-06-06 10:32:38 +01:00
Wez Furlong 95d7b634e0 ci: make dependabot match 2-week cooldown settings for rust 2026-06-06 08:52:10 +01:00
Wez Furlong 0aa78582a4 ci: bump download-artifact 2026-06-06 08:46:28 +01:00
Wez Furlong 73ac6f2802 deps: cargo cooldown update
Add a trivial little script to run `cargo cooldown update`.
The purpose of the script is to make it a little more discoverable
in the future if I or someone else forgets how this works.

https://crates.io/crates/cargo-cooldown is required to run this
script.  Its purpose is to run `cargo update` while respecting
the dependency cooldown options found in cooldown.toml in the
root of the repo
2026-06-06 08:30:00 +01:00
Wez Furlong 71ac841b80 ci: bump upload-artifact 2026-06-06 08:13:15 +01:00
Wez Furlong 954bdc3303 ci: appimage build requires the file command 2026-06-06 08:11:54 +01:00
Wez Furlong f4e41b746a ci: restore building the appimage
Tweak to make it more difficult to overlook when we later deprecate
a particular platform/target.

Similarly for the gemfury apt repo uploads
2026-06-06 07:31:47 +01:00
Wez Furlong d4bababa1b ci: bump some actions workflows, drop some EOL/old distros
This is just a quick pass to get CI more in the green, and to use
fewer resources: some of these distros are pretty old.

Note that our remaining fedora entry here is also EOL; we can
review bumping that in a separate pass.
2026-06-06 07:19:05 +01:00
dependabot[bot] 437e003b11 build(deps): bump actions/stale from 9.1.0 to 10.0.0
Bumps [actions/stale](https://github.com/actions/stale) from 9.1.0 to 10.0.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v9.1.0...v10.0.0)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: 10.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-06 07:08:03 +01:00
Wez Furlong f2a60214cd bump lock-threads to v6 2026-06-06 07:05:34 +01:00
Benoit de Chezelles dab1816d05 gh: update issue template with new label name 2026-06-05 10:11:45 +02:00
Benoit de Chezelles a50722bd81 Revert "gha: Update no-response workflow to match new label name"
This reverts commit b4ca9a1365.

The longer label actually looks bad/truncated in GH ui 😬
2026-06-05 09:33:28 +02:00
Benoit de Chezelles b4ca9a1365 gha: Update no-response workflow to match new label name 2026-06-05 07:00:46 +02:00
Benoit de Chezelles eeb8097292 fix: Detect if running in WSL with icase 'microsoft' check (#7137) 2026-06-04 14:54:53 +02:00
John Taylor 9221506a1a docs: Add Void Linux installation instructions for WezTerm (#7371) 2026-06-04 14:52:17 +02:00
drapeol bd7de12f39 docs: Update rustup install link in source.md (#7811) 2026-06-04 14:36:08 +02:00
Tautik AgrahariandBenoit de Chezelles 297637504a Fix 'the the' typos across doc & code files (#7769)
* docs: fix duplicate-word typos across doc files
* code: fix duplicate 'the the' typos across code files

Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-06-04 14:09:39 +02:00
Matt Dembiczak 760ed023e4 docs: fix typo in quick_select_alphabet.md (#7169) 2026-06-04 13:46:42 +02:00
Yoan Wainmann 43db8a49dd docs: add build-from-source section to CONTRIBUTING.md (#7688) 2026-06-04 13:44:38 +02:00
KevinSilvester 21f656f931 docs: add missing panes field to TabInformation (#7710) 2026-06-04 13:31:13 +02:00
Jeff QuastandWez Furlong 577474d89e Prevent "screen scraping", disable DECRQCRA (#7701)
* Security fix: prevent screen scraping

Problem
-------

DECRQCRA was added in 6cbb3ba43, for 9702d1cf5 (esctest integration) Sunday, March 17 2019.  Six days later, March 23 2019, although esctest was removed in c93f967bc, DECRQCRA remained enabled by default for all WezTerm releases since.

March 2023, @j4james mentioned WezTerm has this option enabled by default https://github.com/microsoft/terminal/issues/14974, "some people consider it a security risk"

September 2023, https://dgl.cx/2023/09/ansi-terminal-security#cursor-checksum article writes, "using DECRQCRA [..] potential attack here is reading what is displayed on the terminal before a user SSHes to a remote system."

By switching to "alternate screen", it also possible to recover last TUI display, such as contents of the file last opened in an editor.

Example CLI script scrapes screens '0' and '1' of WezTerm, https://github.com/jquast/blessed/blob/master/bin/screen-scrape.py

Solution
--------

Disable https://vt100.net/docs/vt510-rm/DECRQCRA.html by default, may be re-enabled by configuration.

---

Refs: https://github.com/wezterm/wezterm/pull/7701

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2026-03-31 04:00:28 -07:00
Yiding Jia 05343b3870 wezterm-blob-leases: Use uuid v4 over v1 2026-01-17 15:44:28 +00:00
Wez Furlong 31b1beda3f docs: changelog for #7076 #7504 2026-01-17 15:37:31 +00:00
Jonathan Giannuzzi 30ef869d72 Fix parsing of partial SGR mouse sequences 2026-01-17 15:35:15 +00:00
Wez Furlong 669497f80e docs: changelog for #7483 2026-01-17 15:27:40 +00:00