Skip to content

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

Merged
lalit-videodb merged 2 commits into
release-0-5-3from
fix/sandbox-error-details-20261007
Nov 22, 2026
Merged

lalit-videodb merged 2 commits into
release-0-5-3from
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.

@lalit-videodb
lalit-videodb force-pushed the fix/sandbox-error-details-20261007 branch from 89713c5 to 1215607 Compare November 22, 2026 17:57
@lalit-videodb
lalit-videodb changed the base branch from main to release-0-5-3 November 22, 2026 17:57
@lalit-videodb
lalit-videodb merged commit 1e20bfb into release-0-5-3 Nov 22, 2026
5 of 6 checks passed
@lalit-videodb lalit-videodb mentioned this pull request Nov 22, 2026
@lalit-videodb
lalit-videodb deleted the fix/sandbox-error-details-20261007 branch November 30, 2026 11:24
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