Skip to content

x11: don't panic in request_user_attention when sending WM hints fails - #34

Draft
warp-agent-staging[bot] wants to merge 1 commit into
warpdotdev/v0.30.xfrom
benchmark-run-97-trial-6857-attempt-1/01a0dac0-e655-7427-80c7-3e335642e1c2/x11-request-user-attention-no-panic
Draft

warp-agent-staging[bot] wants to merge 1 commit into
warpdotdev/v0.30.xfrom
benchmark-run-97-trial-6857-attempt-1/01a0dac0-e655-7427-80c7-3e335642e1c2/x11-request-user-attention-no-panic

Conversation

@warp-agent-staging

@warp-agent-staging warp-agent-staging Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

On X11, Window::request_user_attention sets the window's urgency hint by mutating WM_HINTS and sending the update to the X server. The send result was unwrapped with expect_then_ignore_error, so a failure to send the request — for example a dead X11 connection — panicked and aborted the process. Warp hits this when it rings the terminal bell while inactive; it shows up in Sentry as WARP-CLIENT-BETA-STABLE-89S1.

This treats the send failure as recoverable: it logs a warning instead of panicking. On success it keeps ignoring the resulting cookie exactly as before, matching the surrounding error handling in this file.

  • Tested on all platforms changed — built with the X11 backend (cargo check --no-default-features --features x11,rwh_06). The failure branch needs a dead X11 connection mid-request, for which winit has no test seam, so it is not covered by an automated test.
  • Added an entry to the changelog module (src/changelog/unreleased.md).
  • Updated documentation — no user-facing API or behavior change beyond not aborting.
  • Created or updated an example program — not applicable.
  • Updated feature matrix — no new features.

Base branch: this targets warpdotdev/v0.30.x; the change is applied on the pin Warp currently resolves (a4e0ecb5).

Warp side (dependency bump): warpdotdev/warp-for-benchmarks#77.


This PR was created by Warp (running Claude Code).

…tion

request_user_attention rings the urgency hint by mutating the window's
WM_HINTS and sending the update to the X server. The send result was
unwrapped with expect_then_ignore_error, so a failure to send the request
(e.g. a dead X11 connection) panicked and aborted the process.

Treat the send failure as recoverable: log a warning instead of panicking.
On success, keep ignoring the resulting cookie as before.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant