Missing --cdp flag silently launches a second Chrome, mimicking a logged-out session
A developer debugging a scheduled automation job discovered that omitting the --cdp flag in agent-browser caused the tool to silently launch a fresh, unauthenticated Chrome instance instead of attaching to an existing logged-in one. The automation still ran successfully by all exit-code checks, but returned a logged-out page because it was operating in a brand-new browser profile with no stored session. This made the issue appear identical to a genuine session expiry, leading to misdiagnosis. The key diagnostic tell is the log line 'launched browser' — its presence confirms the tool is not attached to the user's actual Chrome profile. A reliable fix involves verifying the correct Chrome process is bound to the expected debugging port by inspecting its user data directory via the system process list.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in