E2B icon indicating copy to clipboard operation
E2B copied to clipboard

Feat: Print sandbox inspect url on sandbox spawn

Open ben-fornefeld opened this issue 5 months ago • 9 comments

This PR updates the sandbox spawn process to print the inspect URL to the console when a new sandbox is created using e2b sbx spawn or e2b sbx create. This makes it easier for users to access and debug new sandboxes directly after creation.

Screenshot 2025-09-15 at 2 54 22 PM

ben-fornefeld avatar Aug 01 '25 15:08 ben-fornefeld

🦋 Changeset detected

Latest commit: 32a2abbdc49f0002bd9dfd10b493aa0911f87ed1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@e2b/cli Patch

Not sure what this means? Click here to learn what changesets are.

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

changeset-bot[bot] avatar Aug 01 '25 15:08 changeset-bot[bot]

@ben-fornefeld can you use team slug instead of team ID?

mlejva avatar Aug 01 '25 16:08 mlejva

@ben-fornefeld can you use team slug instead of team ID?

that would probably require a re-auth. will check tomorrow!

ben-fornefeld avatar Aug 01 '25 16:08 ben-fornefeld

The auth command needs to be changed in order to retrieve the slug as well as the team id, but currently signed teams will see the their team id in the link (since the slug was not fetched before).

mishushakov avatar Aug 05 '25 13:08 mishushakov

@mishushakov i have an idea how to make this logic not dependent on the client side at all.

i will just check in the dashboard via /dashboard/inspect/$sbxId if the user has access to the sandbox and route him to the correct team / url from there. no need for slug on the client side.

wdyt?

ben-fornefeld avatar Sep 03 '25 08:09 ben-fornefeld

we should try this!

mishushakov avatar Sep 03 '25 09:09 mishushakov

we should try this!

done. tested on the following pr/preview: https://github.com/e2b-dev/dashboard/pull/141

ben-fornefeld avatar Sep 15 '25 12:09 ben-fornefeld

NOTE:

this pr can be reviewed already, but merging needs to be blocked until https://github.com/e2b-dev/dashboard/pull/141 is deployed.

ben-fornefeld avatar Sep 16 '25 10:09 ben-fornefeld