Skip to content

Fix ChromeHeadlessShell launch crash with Invalid browser error#3141

Merged
kblok merged 1 commit intomasterfrom
fix-chrome-headless-shell-launch-2967
Feb 16, 2026
Merged

Fix ChromeHeadlessShell launch crash with Invalid browser error#3141
kblok merged 1 commit intomasterfrom
fix-chrome-headless-shell-launch-2967

Conversation

@kblok
Copy link
Member

@kblok kblok commented Feb 16, 2026

Summary

  • Add SupportedBrowser.ChromeHeadlessShell to the Process switch expression in Launcher.cs so it uses ChromeLauncher instead of throwing ArgumentException("Invalid browser")
  • The buildId switch above already handled this case correctly, but the Process switch was missing it

Fixes #2967

Test plan

  • Launch with Browser = SupportedBrowser.ChromeHeadlessShell no longer throws

🤖 Generated with Claude Code

Add SupportedBrowser.ChromeHeadlessShell to the Process switch in
Launcher so it uses ChromeLauncher, matching the buildId switch above.

Fixes #2967

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

Running Launcher.LaunchAsync() with LaunchOptions Browser = SupportedBrowser.ChromeHeadlessShell crashes

1 participant