-
Notifications
You must be signed in to change notification settings - Fork 99
release: 3.5.0 #301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
stainless-app
wants to merge
26
commits into
stainless
Choose a base branch
from
release-please--branches--stainless--changes--next
base: stainless
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
release: 3.5.0 #301
stainless-app
wants to merge
26
commits into
stainless
from
release-please--branches--stainless--changes--next
Conversation
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
Contributor
Author
|
🧪 Testing To try out this version of the SDK, run: Expires at: Thu, 26 Feb 2026 02:23:32 GMT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 24 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant User as "User Code"
participant SDK as "Stagehand SDK"
participant Pydoll as "Pydoll (CDP Lib)"
participant API as "Stagehand/BB API"
participant Browser as "Remote Browser"
note over User,Browser: Flow: Session Start & Mixed CDP/SDK Control
%% 1. Session Initialization (Renamed & Auth Logic)
User->>SDK: client.sessions.start(model="...", browser=...)
note right of User: CHANGED: Replaces .create()<br/>(Legacy .create calls .start internally)
SDK->>SDK: _requires_browserbase_credentials()
alt CHANGED: Browser is local
SDK->>SDK: Skip API Key/Project ID check
else Browser is remote/default
SDK->>SDK: Validate Browserbase Env Vars
end
SDK->>API: POST /sessions
API->>Browser: Spawn Instance
Browser-->>API: WebSocket Debug URL (wss://...)
API-->>SDK: Session Data (id, cdp_url)
SDK-->>User: Session Helper
%% 2. Pydoll Attachment (New Feature/Example)
note over User,Browser: NEW: Direct CDP Attachment (Pydoll Example)
User->>User: Normalize cdp_url (wss -> ws)
User->>Pydoll: Chrome().connect(cdp_url)
Pydoll->>Browser: WebSocket Upgrade
Browser-->>Pydoll: Connection Established
Pydoll->>Browser: Target.attachToTarget(flatten=True)
Browser-->>Pydoll: sessionId (CDP specific)
User->>Pydoll: Navigate & Get Frame Tree
Pydoll->>Browser: Page.navigate / Page.getFrameTree
Browser-->>Pydoll: Frame Details
Pydoll-->>User: Return frame_id
%% 3. Hybrid SDK Action
User->>SDK: session.observe(instruction="...", frame_id=frame_id)
note right of User: NEW: SDK actions accept<br/>explicit frame_id
SDK->>API: POST /sessions/{id}/observe
note right of SDK: Request Body includes:<br/>{ "frameId": "..." }
API->>Browser: Execute AI Action in specific frame
Browser-->>API: Action Result
API-->>SDK: JSON Response
SDK-->>User: SessionObserveResponse
8bfbd23 to
2aea9e1
Compare
2aea9e1 to
f8e03bf
Compare
7b5c7b2 to
f7726ac
Compare
fd25208 to
dde6607
Compare
dde6607 to
4d386ca
Compare
4d386ca to
fcd1b53
Compare
fcd1b53 to
396a905
Compare
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.
Automated Release PR
3.5.0 (2026-01-27)
Full Changelog: v3.4.7...v3.5.0
Features
Chores
actions/checkoutversion (bda97bc)This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions