Merged
Conversation
Contributor
Author
|
🧪 Testing To try out this version of the SDK, run: Expires at: Thu, 26 Feb 2026 17:38:59 GMT |
There was a problem hiding this comment.
No issues found across 30 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 Client Code
participant SDK as Stagehand SDK
participant API as Backend API
Note over User, API: 1. NEW: Binary/Streaming Request Support
User->>SDK: client.post(..., content=bytes_or_iter)
alt NEW: 'content' parameter usage
SDK->>SDK: Validate 'body' (JSON) is not set
SDK->>SDK: Pass raw content to underlying httpx transport
else Deprecated: 'body' with bytes
SDK->>SDK: Emit DeprecationWarning
SDK->>SDK: Treat as content
end
SDK->>API: POST /endpoint (Raw Binary Stream)
API-->>SDK: 200 OK
SDK-->>User: Response
Note over User, API: 2. UPDATED: Session Execution & Caching
User->>SDK: sessions.execute(..., should_cache=True)
SDK->>SDK: CHANGED: 'x-sent-at' header removed
SDK->>API: POST /v1/sessions/{id}/agentExecute
Note right of SDK: Payload includes {"shouldCache": true}
alt Success with Cache
API-->>SDK: 200 OK
Note left of API: Response includes 'cacheEntry' object
SDK-->>User: SessionExecuteResponse (w/ cache_entry)
else Standard Execution
API-->>SDK: 200 OK
SDK-->>User: SessionExecuteResponse
end
Note over User, API: 3. NEW: Session Replay
User->>SDK: sessions.replay(id)
SDK->>API: NEW: GET /v1/sessions/{id}/replay
API-->>SDK: 200 OK (JSON)
Note left of API: Returns actions, token usage, timestamps
SDK-->>User: SessionReplayResponse
shrey150
approved these changes
Jan 27, 2026
pyproject.toml
Outdated
| [project] | ||
| name = "stagehand" | ||
| version = "3.4.7" | ||
| name = "stagehand-alpha" |
Contributor
There was a problem hiding this comment.
Is this rename intentional?
Comment on lines
+74
to
+77
| class DataCacheEntry(BaseModel): | ||
| cache_key: str = FieldInfo(alias="cacheKey") | ||
| """Opaque cache identifier computed from instruction, URL, options, and config""" | ||
|
|
Contributor
There was a problem hiding this comment.
Checking that this caching functionality should be exposed right now
Contributor
Author
|
🤖 Release is at https://github.com/browserbase/stagehand-python/releases/tag/v3.4.8 🌻 |
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.
Automated Release PR
3.4.8 (2026-01-27)
Full Changelog: v3.4.7...v3.4.8
Chores
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
Summary by cubic
Release 3.4.8 adds session replay and per-execute caching, simplifies session params, and adds raw binary/streaming request support. It also refreshes CI workflows.
New Features
Migration
Written for commit 7914f28. Summary will update on new commits. Review in cubic