Repository navigation
feat: Sandbox environments - #918
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 4e9ff9e The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
…h environment management
harshil-2096
force-pushed
the
feature/hv/environments-frontend-2
branch
from
September 29, 2026 12:55
0a4db0e to
b1211d0
Compare
…or improved readability
…ons and improve table layout
…proved UI and functionality
Satisfies @typescript-eslint/no-empty-object-type so CI lint passes on PR #918. Co-authored-by: Cursor <cursoragent@cursor.com>
harshil-2096
marked this pull request as ready for review
September 30, 2026 09:08
harshil-2096
requested review from
bhaveshpatel640,
chiragjn,
debajyoti-truefoundry,
govindavashishtha,
heerambavi1998,
kumarsks619,
qaifi-tf,
sajal-truefoundry,
sayan-truefoundry,
sr07asthana,
thesujai and
vinit-truefoundry
as code owners
September 30, 2026 09:08
Still-mounted draft pickers only loaded ready envs on mount. Invalidate a shell catalog epoch on create/delete/activation and refetch when the picker opens or Manage Environments closes so new active envs appear without remount. Co-authored-by: Cursor <cursoragent@cursor.com>
Assert updated environment names inside waitFor so the second list response is applied before the expectation runs. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…dling in UI components. This includes removing static default environment injection from draft selectors and ensuring the UI reflects the new status. Tests have been updated accordingly to reflect these changes.
… update import statements in defaultSlots. The new description clarifies that secrets are synced immediately with existing sandboxes, improving user understanding.
…in EnvironmentsPage, and improve error handling in provider listing. Tests added to verify error display when provider fetching fails.
…ndency from useEffect, streamlining environment loading logic.
…nt fetching by draining multiple pages with a limit of 1000, and improve readiness checks in EnvironmentsPage. Tests added to verify the new pagination logic and environment retrieval.
…oundry/trueforge into feature/hv/environments-frontend-2
govindavashishtha
approved these changes
Oct 4, 2026
govindavashishtha
enabled auto-merge (squash)
October 4, 2026 18:05
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1d41cd6. Configure here.
… component styles for better theming consistency.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Closes AGE-2396
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
Touches sandbox networking, secrets, and agent runtime config; misconfiguration could affect sandbox isolation, though changes are UI-side behind an optional server port.
Overview
Adds sandbox environment management behind an optional
sandboxEnvironmentsserver port: list/create/update/delete via a new/environmentsoverlay (sidebar Environments nav), wired through shell state, routing, and share query params (envQ,envIsNew).The Environments surface includes a paginated table (build status, resources, networking), create/edit in a drawer with UI form or YAML manifest editing (new
yamldependency), pending-status polling, and a guard when no sandbox provider is configured.Agent configuration now binds sandbox
environment_name: runtime settings get an environment dropdown plus Manage Environments, and the draft Tools picker gains an Environment tab (radio selection). Onlyreadyenvironments are offered;SandboxEnvironmentStatususesreadyinstead ofactive, and pickers refresh after CRUD or when pending builds finish viaenvironmentsListEpoch/useReadySandboxEnvironments(full list drain up to limit 1000).The TrueForge adapter implements
createSandboxEnvironmentServeragainst the SDK. Smaller UI plumbing: sharedBadge,PopoverSelect.onOpenChange,CodeEditor.defaultShowLineNumbers, and tests for the new flows.Reviewed by Cursor Bugbot for commit 4e9ff9e. Bugbot is set up for automated code reviews on this repo. Configure here.