[docs]: add docs for ignoreDefaultArgs - #2222
Merged
seanmcguire12 merged 1 commit intoJun 9, 2026
Merged
Conversation
|
miguelg719
approved these changes
Jun 9, 2026
Contributor
There was a problem hiding this comment.
No issues found across 2 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant UserCode as User Application
participant Stagehand as Stagehand.init()
participant Launcher as Chrome Launcher
participant Browser as Local Chrome
UserCode->>Stagehand: new Stagehand({ localBrowserLaunchOptions })
Stagehand->>Stagehand: Store ignoreDefaultArgs
UserCode->>Stagehand: await stagehand.init()
Stagehand->>Stagehand: Build final args list
Note over Stagehand: Gather default Chrome args:<br/>--remote-allow-origins=*<br/>--no-first-run<br/>--no-default-browser-check<br/>--disable-dev-shm-usage<br/>--site-per-process
alt ignoreDefaultArgs === true
Stagehand->>Stagehand: Remove all default args<br/>(Stagehand + Chrome Launcher defaults)
else ignoreDefaultArgs is string[]
Stagehand->>Stagehand: Filter out matching default args<br/>by exact string comparison
else ignoreDefaultArgs === false (default)
Stagehand->>Stagehand: Keep all default args
end
Stagehand->>Stagehand: Prepend remaining default args<br/>before user-supplied args
Stagehand->>Launcher: launch({ args: finalArgs, ... })
Launcher->>Browser: Start Chrome with filtered args
Browser-->>Launcher: Browser instance
Launcher-->>Stagehand: Browser & CDP connection
Stagehand-->>UserCode: Ready for automation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
felipeofdev-ai
pushed a commit
to felipeofdev-ai/stagehand
that referenced
this pull request
Aug 4, 2026
# what changed - adds documentation for the `localBrowserLaunchOptions.ignoreDefaultArgs` param <img width="1203" height="713" alt="Screenshot 2026-06-09 at 1 02 20 PM" src="https://github.com/user-attachments/assets/5f3b2ff1-d8d1-41b9-81f3-4c6b9dcbea48" /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Documented `localBrowserLaunchOptions.ignoreDefaultArgs` and listed the default Chrome args Stagehand adds for local launches. Added examples for removing all defaults or specific args using `ignoreDefaultArgs: true` or a string array (STG-2213). <sup>Written for commit 9479f03. Summary will update on new commits.</sup> <a href="https://cubic.dev/pr/browserbase/stagehand/pull/2222?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
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.
what changed
localBrowserLaunchOptions.ignoreDefaultArgsparamSummary by cubic
Documented
localBrowserLaunchOptions.ignoreDefaultArgsand listed the default Chrome args Stagehand adds for local launches. Added examples for removing all defaults or specific args usingignoreDefaultArgs: trueor a string array (STG-2213).Written for commit 9479f03. Summary will update on new commits.