Skip to content

fix(bin): honor cloakserve headed mode - #652

Merged
Cloak-HQ merged 1 commit into
CloakHQ:mainfrom
mvanhorn:fix/651-cloakserve-headed-mode
Nov 26, 2026
Merged

Cloak-HQ merged 1 commit into
CloakHQ:mainfrom
mvanhorn:fix/651-cloakserve-headed-mode

Conversation

@mvanhorn

Copy link
Copy Markdown
Contributor

Background

Requesting a visible browser window with cloakserve --headless=false starts Chrome without a window on the Xvfb display.

The parser set config["headless"] to False but also forwarded the flag to Chrome. Chrome enables headless mode whenever the --headless switch is present, even when its value is false.

Summary

The parser consumes both --headless=false and --headless=False and keeps headed mode selected. The updated test checks that each spelling is removed from Chrome's arguments and that the surrounding arguments retain their order.

Tests

  • pytest -q tests/test_cloakserve.py reported one skip, so the regression test did not run.
  • A run with the CloakBrowser parse_cli_args change reverted gave no clear result, so no test is shown to catch this bug.
  • The changed test tests/test_cloakserve.py did not run here: the test environment could not run it.

Fixes #651

The parser consumes both `--headless=false` and `--headless=False` and
keeps headed mode selected. The updated test checks that each spelling
is removed from Chrome's arguments and that the surrounding arguments
retain their order.

Fixes CloakHQ#651
@Cloak-HQ
Cloak-HQ merged commit 09b1bf6 into CloakHQ:main Nov 26, 2026
4 checks passed
@Cloak-HQ

Copy link
Copy Markdown
Member

Thanks for the quick fix, merged.
Dropping the passthrough is the right call, since Chrome treats any --headless switch as headless regardless of its value.
It will ship in the next release.

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.

cloakserve --headless=false makes Chrome headless (no window on Xvfb)

2 participants