Skip to content

release: 3.19.6#341

Open
stainless-app[bot] wants to merge 2 commits intomainfrom
release-please--branches--main--changes--next
Open

release: 3.19.6#341
stainless-app[bot] wants to merge 2 commits intomainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

@stainless-app stainless-app bot commented Apr 8, 2026

Automated Release PR

3.19.6 (2026-04-08)

Full Changelog: v3.19.5...v3.19.6

Bug Fixes

  • client: preserve hardcoded query params when merging with user params (feac39d)

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

Preserves query parameters set in the request URL when merging with user-provided params in the stagehand client, ensuring no params are lost. Releases version 3.19.6.

  • Bug Fixes
    • _build_request now merges existing URL query params with params and strips the query from raw_path to avoid duplication; supports encoded paths (e.g., /files/a%2Fb).

Written for commit 2120746. Summary will update on new commits. Review in cubic

@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app bot commented Apr 8, 2026

🧪 Testing

To try out this version of the SDK:

pip install 'https://pkg.stainless.com/s/stagehand-python/feac39d88a841ff710d672b622f3280037589f66/stagehand-3.19.5-py3-none-any.whl'

Expires at: Fri, 08 May 2026 04:41:44 GMT
Updated at: Wed, 08 Apr 2026 04:41:44 GMT

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a 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 6 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/Service
    participant Client as Stagehand Client
    participant Build as _build_request()
    participant HTTPX as httpx.Request

    Note over User,HTTPX: Request Preparation Flow

    User->>Client: call_api(url="/path?fixed=1", params={"user": "2"})
    Client->>Build: Initialize request construction
    
    Build->>Build: _prepare_url(options.url)
    
    alt NEW: Both URL query and params dictionary exist
        Note right of Build: Merging logic to prevent parameter loss
        Build->>Build: CHANGED: Extract params from URL string
        Build->>Build: CHANGED: Merge URL params with user params dict
        Build->>Build: CHANGED: Strip query from raw_path (prevent duplication)
    else Only URL query or only params dict
        Build->>Build: Use standard httpx parameter handling
    end

    Build->>HTTPX: Create Request object
    HTTPX-->>Build: request (with merged query string)
    Build-->>Client: Prepared request
    Client->>User: Execute and return response
Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants