Repository navigation
feat(browser): make signed-in use chrome mcp clone - #831
Merged
Merged
Conversation
artemgetmann
force-pushed
the
codex/browser-signed-in-mcp-default-20260531
branch
from
June 5, 2026 11:52
c14654d to
d2b0c34
Compare
artemgetmann
marked this pull request as ready for review
June 5, 2026 11:53
added 5 commits
June 5, 2026 19:57
- normalize legacy browser action timeout and dblClick aliases before dispatch - keep Chrome MCP timeouts at the request layer and recover opened tabs after navigation timeouts - improve existing-session dropdown/press guidance with targeted tests - risk: limited to browser tool and Chrome MCP existing-session paths
- what changed: keep evaluate_script timeouts out of Chrome MCP tool args, focus targeted existing-session presses, and pass only element refs through chooseOption evaluate args - why: live signed-in Batik proof exposed Chrome MCP rejecting timeout args plus natural targeted press/dropdown calls failing on existing-session profiles - behavior/risk: narrows text-ref recovery to exact visible matches after missing uid errors; stable refs remain strict and live proof stopped before passenger Continue/payment
- what changed: split attach-vs-tool timeout handling, stabilized screenshot temp reads, coalesced signed-in clone launches, and kept existing-session timeout overrides at the request layer - why: post-ready MCP timeouts and duplicate clone parents were causing false approval guidance and flaky signed-in browser smokes - behavior/risk: scoped to Chrome MCP existing-session lifecycle; targeted tests, build, raw smoke, and visible Batik smoke passed
artemgetmann
force-pushed
the
codex/browser-signed-in-mcp-default-20260531
branch
from
June 5, 2026 12:00
d2b0c34 to
751c26e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Review Fast Path
signed-inbrowser profile now uses a cloned signed-in Chrome session through Chrome MCP for GrabFood/Jarvis work.signed-instatus showeddriver=existing-session,transport=chrome-mcp,cdpReady=true; GrabFood open/screenshot/snapshot/safe click all succeeded.openclawremains the managed CDP fallback;signed-inis the built-in Chrome MCP clone lane;user-liveremains the real live Chrome lane.Why This Matters
profile="signed-in"for logged-in GrabFood work, but currentmainstill routed built-insigned-inthrough managed CDP/Playwright helpers.openclaw.Scope Boundary
signed-inprofile resolution, Chrome MCP existing-session lifecycle/action hardening, docs/tool guidance, and focused tests.openclawmanaged browser fallback,user-livereal Chrome attach semantics, Telegram runtime ownership, payment/checkout policy.origin/mainand includes one reconciliation commit preserving PR fix(browser): propagate snapshot timeouts #856 snapshot-timeout guidance plus PR feat(browser): make signed-in use chrome mcp clone #831 Chrome MCP behavior.Verification
git diff --check origin/main...HEADpassed.pnpm test -- src/browser/chrome-mcp.test.ts src/browser/routes/agent.existing-session.test.ts src/agents/tools/browser-tool.test.tspassed: 64 browser-route/Chrome-MCP tests + 53 browser-tool tests.pnpm test -- src/browser/server-context.existing-session.test.tspassed: 4 tests.pnpm buildpassed.Isolated raw proof used:
OPENCLAW_HOME=.openclaw-signed-in-default/homeOPENCLAW_STATE_DIR=.openclaw-signed-in-default/stateOPENCLAW_CONFIG_PATH=.openclaw-signed-in-default/openclaw.json23947, channels skipped.Raw results:
node openclaw.mjs browser --url ws://127.0.0.1:23947 --token <redacted> --browser-profile signed-in status --jsonprofile: signed-indriver: existing-sessiontransport: chrome-mcprunning: truecdpReady: trueuserDataDir: .openclaw-signed-in-default/state/browser/signed-in/user-datatabs --jsonreturned Chrome MCP pages.open https://food.grab.com/id/en/ --jsonreturnedtargetId: 2, URLhttps://food.grab.com/id/en/.screenshot --jsonwrote an isolated media file under.openclaw-signed-in-default/state/media/browser/...jpg.snapshot --json --timeout 60000returned GrabFood content and refs, including location/search/category controls.click 1_21 --jsonsucceeded, thentabs --jsonshowedhttps://food.grab.com/id/en/cuisines/coffee-delivery/47; status still reporteddriver=existing-session,transport=chrome-mcp,cdpReady=true.Runtime Ownership Gap
During isolated proof,
gateway statusshowed the loaded shared LaunchAgent still points at the default service/runtime, not this isolated lane. I did not rungateway restartbecause that would take over shared launchd from a feature worktree.After merge, before Telegram/Grab Jarvis proof:
~/Programming_Projects/openclawto mergedmain./Applications/Jarvis.appruntime, depending on the intended owner.AI Assistance