fix route parsing#73
Merged
NikhilShahi merged 2 commits intoApr 14, 2026
mainhyperbrowserai/python-sdk:mainfrom
regional-path-runtime-supporthyperbrowserai/python-sdk:regional-path-runtime-supportCopy head branch name to clipboard
Merged
fix route parsing#73NikhilShahi merged 2 commits intomainhyperbrowserai/python-sdk:mainfrom regional-path-runtime-supporthyperbrowserai/python-sdk:regional-path-runtime-supportCopy head branch name to clipboard
NikhilShahi merged 2 commits into
mainhyperbrowserai/python-sdk:mainfrom
regional-path-runtime-supporthyperbrowserai/python-sdk:regional-path-runtime-supportCopy head branch name to clipboard
Conversation
NikhilShahi
approved these changes
Apr 14, 2026
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.
Note
Medium Risk
Adjusts how runtime API and exposed-port URLs are constructed, which can affect connectivity for existing sandbox sessions if path/host parsing is wrong. Changes are covered by updated unit and e2e assertions but still touch core routing logic.
Overview
Fixes sandbox runtime URL construction to correctly handle regional runtime
baseUrls that already include/sandbox/{sessionId}and to avoid double-/missing-/sandboxprefixes when joining relative paths.Exposed port URLs now incorporate the sandbox session id into the hostname (e.g.
https://3000-sbx_123.runtime.example.com/) by extracting the id fromruntime.base_url(orruntime.hostfallback) and always emitting a root-path exposed URL.Updates wire-contract/e2e tests to assert the new URL shapes and adds targeted tests for the new parsing helpers; bumps version to
0.90.3.Reviewed by Cursor Bugbot for commit 2cc8e0e. Bugbot is set up for automated code reviews on this repo. Configure here.