Skip to content

fix: show sandbox failure details and explain polling timeouts - #107

Open
lalit-videodb wants to merge 1 commit into
mainfrom
fix/sandbox-error-details-20261007
Open

lalit-videodb wants to merge 1 commit into
mainfrom
fix/sandbox-error-details-20261007

Conversation

@lalit-videodb

Copy link
Copy Markdown
Collaborator

Pull Request

Description:
Sandbox polling currently drops the API's error field and reports only that a terminal state was reached. A polling timeout also gives no guidance that startup may continue. Preserve the error on sandbox.error, include it in terminal exceptions, and tell callers they can continue waiting on the same sandbox ID after a timeout.

Changes:

  • Preserve optional error details across construction and refresh; explicit null clears the field.
  • Keep existing exception types, statuses, default timeout, and polling behavior. No automatic sandbox creation, stopping, or retries.
  • Document safe timeout recovery and add regression coverage.

Related Issues:
Follow-up from repeated sandbox startup failures; independent of the infrastructure repair and requires no server changes. This PR does not publish a package or change the existing client's notebook.

Testing:
All 16 tests pass, including 12 new sandbox cases. Full-repository Ruff check and diff checks pass. Independent review reran the tests and checked create/get/list constructor propagation. Covers missing/null errors, terminal details, existing fallback text, ready states, and timeout followed by successful waiting on the same ID.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant