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
* 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.
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.
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
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.
Add UNNotificationPresentationOptions::Banner and Badge flags to
notification presentation options in macos.rs. This ensures that OSC 9
escape code notifications and window:toast_notification() calls display
as visible toast popups on macOS with badge indicators, not just entries
in the Notification Center.
Fixes issue where notifications were only shown in Notification Center
with sound, but no visible banner popup appeared.
Thanks to @joshuataylor for identifying the issue and suggesting the fix:
https://github.com/wezterm/wezterm/issues/5476#issuecomment-3652352095Fixes#5476
Move the main package Requires directive before subpackage definitions in the RPM spec file. The Requires statement for the main 'wezterm' metapackage must appear before any %package subpackage sections to be properly recognized by RPM. This fixes the issue where installing the 'wezterm' virtual package would install nothing, while installing wezterm-common and wezterm-mux-server separately worked correctly.
The BUILD_REQUIRES heredoc was using a quoted delimiter ('BREQEOF'),
which prevented shell variable expansion of ${TAR_NAME}. This caused
RPM build errors when the spec file received the literal string
"wezterm-${TAR_NAME}.tar.gz" instead of the expanded filename.
Changed to an unquoted delimiter (BREQEOF) to enable variable expansion.
I was trying to debug an issue I'm seeing with wezterm and figured I
would try to use the terminal for my day-to-day with trace logds enabled
while I try to figure it out.
Unfortunately it turned out to be disruptive enough to make the terminal
almost unusable. I narrowed at least *that* part down to the fact that
printing out each log message would result in about screenful worth of
`write(2)` syscalls, many of them printing just one space character each
(padding? debug structure identation?)
Although it would be ideal to use a line-based buffered writer here,
pre-formatting the log string to a String before printing seemed like a
straightforward quick solution and it works amazingly well!
The JS that removes the `$` prefix from copied text expects a `console`
code block, but the BSD instructions were using `bash` code blocks. This
switches those code blocks to `console`.
The selector used `button.md-clipboard`, but the copy button does not
have this class, causing the selector to fail to match. This switches
that class for the current copy button's class.
Uses RPM subpackages (%package -n) with a single spec file - the standard approach for generating multiple binary RPMs from one build. This allows wezterm-mux-server to be installed without GUI dependencies (X11, Wayland, fontconfig, mesa-libEGL, etc).
Changes:
- wezterm-common: CLI launcher and utilities, requires only openssl
- wezterm-gui: GUI terminal with desktop integration, requires GUI libraries
- wezterm-mux-server: Headless multiplexer server, requires only openssl
- wezterm: Metapackage requiring all three for backward compatibility
Single %build section compiles all binaries together. Works for both COPR (source RPM) and binary RPM builds.