Skip to content

x11: treat WmHints::set send failure as recoverable - #24

Draft
warp-agent-staging[bot] wants to merge 1 commit into
warpdotdev/v0.30.xfrom
factory/fix-wmhints-send-panic
Draft

warp-agent-staging[bot] wants to merge 1 commit into
warpdotdev/v0.30.xfrom
factory/fix-wmhints-send-panic

Conversation

@warp-agent-staging

Copy link
Copy Markdown

Summary

  • Treat WmHints::set send failure as recoverable in request_user_attention on X11, logging a warning instead of panicking.

When the X11 connection is dead, WmHints::set returns Err(ConnectionError). The previous code called expect_then_ignore_error, which panics on the send error via .expect(). Since user-attention requests are best-effort (the cookie was already being ignored on success), the send failure should also be non-fatal.

Fixes Sentry WARP-CLIENT-BETA-STABLE-89S1.

Test plan

  • cargo check --features x11 passes
  • Verified the change is minimal: only request_user_attention is modified
  • On success, the cookie is still ignored (same behavior as before)
  • On failure, a warning is logged instead of panicking

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

…ttention

When the X11 connection is dead, WmHints::set returns a ConnectionError.
The previous code called expect_then_ignore_error which panics on the
send error, causing an abort. User attention is best-effort — log a
warning instead of crashing.

Co-Authored-By: Claude Opus 4.6 <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.

0 participants