Skip to content

feat(desktop-linux): prefer maim for screenshots and silence import#45

Merged
ElbertePlinio merged 1 commit into
mainfrom
feat/maim-screenshot-tool
Jul 17, 2026
Merged

feat(desktop-linux): prefer maim for screenshots and silence import#45
ElbertePlinio merged 1 commit into
mainfrom
feat/maim-screenshot-tool

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

What

  • Add maim as the preferred screenshot tool for lab desktops (ahead of ImageMagick import)
  • Pass -silent to the import fallback so it never rings the X bell
  • Update builder tests

Why

ImageMagick import rings the X bell on every capture (audible beeps during agent-driven smoke tests) and is unreliable under Xwayland. maim is silent, reliable on Xvfb/X11, and produces identical root-window PNGs.

Validation

  • vitest run test/builders.test.ts: 38/38 pass
  • Integration test "records a screenshot artifact in a run" passes using maim on a live Xvfb display
  • Pre-existing x11vnc startup failure in integration.test.ts is unrelated (fails on clean main too)
  • Local review (correctness profile): APPROVE

- add maim as the preferred screenshot tool (silent, reliable under Xvfb/Xwayland)
- pass -silent to the ImageMagick import fallback so it never rings the X bell
- update builder tests
@ElbertePlinio
ElbertePlinio merged commit 04c24c3 into main Jul 17, 2026
1 check passed
@ElbertePlinio
ElbertePlinio deleted the feat/maim-screenshot-tool branch July 17, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant