The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(browser): log when Chromium-only env flags are stripped for Lightpanda
kshitijk4poora9eb06a629f6
diff --git a/tools/browser_tool.py b/tools/browser_tool.pyindex 7a7a81b1f37..b6270d35371 100644--- a/tools/browser_tool.py+++ b/tools/browser_tool.py@@ -3711,8 +3711,15 @@ def _run_browser_command(# the current and legacy variables for Lightpanda commands; explicit# Chrome commands and fallback use the shared Chromium policy.if engine == "lightpanda":- browser_env.pop("AGENT_BROWSER_ARGS", None)- browser_env.pop("AGENT_BROWSER_CHROME_FLAGS", None)+ _stripped_args = browser_env.pop("AGENT_BROWSER_ARGS", None)+ _stripped_flags = browser_env.pop("AGENT_BROWSER_CHROME_FLAGS", None)+ if _stripped_args is not None or _stripped_flags is not None:+ logger.debug(+ "browser: stripped Chromium-only AGENT_BROWSER_ARGS/"+ "AGENT_BROWSER_CHROME_FLAGS for Lightpanda command %s "+ "(agent-browser rejects them with --engine lightpanda)",+ command,+ )else:_apply_chromium_sandbox_args(browser_env)