You'll notice
No documentation found
Claude Code now clears WAYLAND_DISPLAY along with DISPLAY when forcing headless behavior on Linux
What
On Linux, when Claude Code strips graphical display environment variables to force headless or command-line browser behavior, it now clears WAYLAND_DISPLAY in addition to DISPLAY.
Why
This closes a gap where a Wayland desktop session could still cause graphical behavior to leak through even after DISPLAY was cleared, since Wayland systems use WAYLAND_DISPLAY instead of (or alongside) DISPLAY.
Names in the bundleWAYLAND_DISPLAY