Conversation
|
| Name | Type |
|---|---|
| @truefoundry/trueforge | Minor |
| @truefoundry/trueforge-core | Minor |
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
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 41e921f. Configure here.
|
|
||
| return { | ||
| ...image, | ||
| ...(manifest.resources ? { resources: mapResources(manifest.resources) } : {}), |
There was a problem hiding this comment.
Snapshot creates reject valid resources
Medium Severity
mapDaytonaEnvironmentToCreateParams always forwards resources for every image kind, including trueforge-default and named snapshots. createNewSandbox then throws a generic Error when resources are present without a docker image, so a schema-valid environment fails at turn time with a 500 instead of creating the sandbox or returning a 422.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 41e921f. Configure here.


Summary
Closes AGE-2288
Changes
How was this tested?
Checklist
pnpm build,pnpm test,pnpm typecheck,pnpm lint:ci, andpnpm format:checkpass locallypackages/trueforge-sdk,python/trueforge_sdk,.github/fern/openapi/openapi.json,docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge.env.exampleupdated if configuration or behavior changedNote
Medium Risk
Changes sandbox provisioning and session carry-forward rules; misconfiguration could affect networking/secrets or unexpectedly discard reused sandboxes when the environment changes.
Overview
Adds caller-owned sandbox environments with list/create/get/update/delete APIs and generated SDK support, plus
AgentSpec.config.sandbox.environmentto pick a named environment instead of tenant provider defaults.At turn runtime, resolving an environment applies Daytona create overrides (image/snapshot, resources, lifecycle, networking, secrets) on fresh sandboxes, while reattach reuses the prior VM only when provider type and environment name still match—otherwise a new sandbox is created.
SandboxInfo/sandbox.createdevents now record the environment name when one was used.Schedule (and related) turn startup is wired to load environments from the new store alongside the existing sandbox provider.
Reviewed by Cursor Bugbot for commit d0f2e79. Bugbot is set up for automated code reviews on this repo. Configure here.