E2B icon indicating copy to clipboard operation
E2B copied to clipboard

fix(js-sdk): return from iterateEvents on end instead of break

Open beran-t opened this issue 9 months ago • 3 comments

Summary

  • Replace break with return in the "end" case of CommandHandle.iterateEvents() so the async generator exits immediately once the command result is captured, instead of continuing to wait for the transport-level gRPC stream to close.

Test plan

  • [x] pnpm run typecheck passes
  • [x] pnpm run lint passes
  • [x] pnpm run format passes (no changes)

beran-t avatar Feb 25 '26 00:02 beran-t

⚠️ No Changeset found

Latest commit: 6815c8ff1b484df383a8bc9fec47b5f55a752af5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Feb 25 '26 00:02 changeset-bot[bot]

Package Artifacts

Built from 128f096. Download artifacts from this workflow run.

JS SDK ([email protected]):

npm install ./e2b-2.13.1-fix-iterate-events-return.0.tgz

CLI (@e2b/[email protected]):

npm install ./e2b-cli-2.7.2-fix-iterate-events-return.0.tgz

Python SDK (e2b==2.14.0+fix-iterate-events-return):

pip install ./e2b-2.14.0+fix.iterate.events.return-py3-none-any.whl

github-actions[bot] avatar Feb 25 '26 00:02 github-actions[bot]

I would need a test case here to be able to compare current/breaking vs proposed version

mishushakov avatar Mar 16 '26 18:03 mishushakov