Skip to content

feat(js-sdk): improve sandbox ready-timeout diagnostics#311

Merged
ninan-nn merged 1 commit intoalibaba:mainfrom
liuxiaopai-ai:codex/js-ready-timeout-diagnostics
Mar 9, 2026
Merged

feat(js-sdk): improve sandbox ready-timeout diagnostics#311
ninan-nn merged 1 commit intoalibaba:mainfrom
liuxiaopai-ai:codex/js-ready-timeout-diagnostics

Conversation

@liuxiaopai-ai
Copy link
Copy Markdown
Contributor

Summary

  • improve JavaScript SDK waitUntilReady timeout message with:
    • timeout attempts count
    • last health-check error detail (when available)
    • connection context (domain, useServerProxy)
    • actionable suggestion for bridge/remote networking cases
  • add focused JS tests for the new timeout diagnostics behavior

Why

Users hitting readiness timeout (for example in bridge network setups) need immediate, actionable diagnostics instead of a generic timeout error.
This aligns JavaScript SDK ergonomics with the improved troubleshooting direction already added in Python SDK.

Validation

  • pnpm -C sdks/sandbox/javascript run lint
  • pnpm -C tests/javascript run lint
  • cd tests/javascript && pnpm run prep:sdk && pnpm exec vitest run tests/test_wait_until_ready_diagnostics.test.ts

Copy link
Copy Markdown
Collaborator

@ninan-nn ninan-nn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Rebase Main Plz : >

@liuxiaopai-ai liuxiaopai-ai force-pushed the codex/js-ready-timeout-diagnostics branch from 8c7afcb to 4209575 Compare March 9, 2026 04:45
@liuxiaopai-ai
Copy link
Copy Markdown
Contributor Author

Rebased onto the latest main and force-pushed the branch. Please take another look when you have a moment. Thanks!

@liuxiaopai-ai
Copy link
Copy Markdown
Contributor Author

@ninan-nn Rebased onto the latest main and force-pushed the branch. Could you please take another look when you have a moment? Thanks!

Copy link
Copy Markdown
Collaborator

@ninan-nn ninan-nn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ninan-nn ninan-nn merged commit 390f165 into alibaba:main Mar 9, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request sdk/js

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants