feat: resilient MDB browser pool and ChatGPT extension status - #11
Merged
alexanderradahl merged 5 commits intoAug 19, 2026
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Summary
Makes the MDB background-browser pool resilient under concurrent ChatGPT/automation workloads, adds a safe read-only interoperability surface for the installed ChatGPT Chrome extension, and improves
chrome_clickfor modern custom controls.Resilient MDB workspace
chrome_openwaits up to 20 seconds for a slot instead of immediately returningCHROME_WORKSPACE_EXHAUSTEDleasedAt+lastActivityAt; navigate/snapshot/click/fill renew the heartbeatMore realistic background clicks
A live G2 Digital Markets signup flow exposed that its Department selector listens on
mousedown, while MDB previously only called DOM.click().chrome_clicknow:pointerover,mouseover,pointermove,mousemove,pointerdown,mousedown, focus,pointerup, andmouseupelement.click()activation for normal button/link/input behaviortrusted: falseThis intentionally does not add Chrome's broad
debuggerpermission. Synthetic events remainisTrusted=false; true trusted-user-gesture browser security boundaries remain manual rather than being bypassed.ChatGPT Chrome extension status
Adds read-only
chatgpt_extension_statuson macOS. It reports:com.openai.codexextensionnative-host registration/allowlist metadatachatgpt.compage bridge when a ChatGPT tab is openThis deliberately does not patch the OpenAI extension, modify its native-host allowlist, expose arbitrary private OpenAI JSON-RPC methods, or programmatically open its side panel. The installed OpenAI extension has no
externally_connectablecontract and the side-panel path requires a trusted user gesture.Why
A real automation run hit
CHROME_WORKSPACE_EXHAUSTEDbecause Apollo, G2, and two Salesforge workflows legitimately occupied all four managed tabs at once. Separately, the G2 flow showed that.click()alone is not enough for many modern component libraries. This PR fixes both classes of ordinary browser reliability failure while preserving background/no-focus behavior and browser security boundaries.Validation
npm testgreennode tests/chrome-background.mjsnode tests/smoke.mjsnpm run checknpm pack --dry-run --jsonshasum -a 256 -c SHA256SUMS(exact 53/53 tracked-file coverage)git diff --check