fix: only warn about ignored flags when explicitly passed via CLI (#373)

The warning about launch-time options being ignored (when daemon is
already running) was incorrectly shown when options were set via
environment variables like AGENT_BROWSER_EXECUTABLE_PATH, even when
no CLI flag was passed.

Now the warning only appears when flags are explicitly passed on the
command line, not when values come solely from environment variables.

Fixes #372
This commit is contained in:
Chris Tate
2026-02-04 23:14:31 -06:00
committed by GitHub
parent 79ef5764fa
commit d34ce8c2d0
3 changed files with 115 additions and 14 deletions
+8
View File
@@ -1425,6 +1425,14 @@ mod tests {
provider: None,
ignore_https_errors: false,
device: None,
cli_executable_path: false,
cli_extensions: false,
cli_profile: false,
cli_state: false,
cli_args: false,
cli_user_agent: false,
cli_proxy: false,
cli_proxy_bypass: false,
}
}