You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stop, resume, extend, and delete boat sandbox environments from T3 Code
#23345
For an environment backed by a boat sandbox, let the user see the sandbox's state and auto-stop deadline, extend or turn off auto-stop, and stop, resume, and delete the sandbox from T3 Code. Removing the environment also asks what to do with the sandbox, so no billed machine or disk is silently left behind.
Problem to solve
A boat sandbox bills per second while it runs. boat stops it at a deadline counted from creation or resume (one hour by default), not from activity, and an open SSH session does not extend that deadline. Without controls in T3 Code, a user who works through a boat-backed environment has two problems:
To save money or to keep a long agent turn running, the user has to leave T3 for the boat CLI or dashboard to stop, resume, or extend the sandbox.
An agent turn can be cut off when the deadline passes, and the user gets no warning.
Removing the environment from T3 also leaves the sandbox and its disk in the boat account unless the user remembers to delete them in boat.
Proposed behavior
The details for a boat-backed environment show the sandbox state (starting, running, stopping, stopped, or error), its size, and its auto-stop deadline.
The user can stop the sandbox. T3 marks the environment as stopped rather than as a connection failure.
The user can resume the sandbox. T3 reconnects it through the same path the boat sandbox environment proposal uses after an auto-stop.
The user can extend the auto-stop deadline or turn auto-stop off, within the limits of the user's boat plan.
Before the deadline stops a sandbox with a running agent turn, T3 warns the user and offers to extend it.
Removing the environment asks whether to stop the sandbox, delete it, or leave it. Deletion needs a separate confirmation that names the sandbox and says that its files are lost.
If the sandbox was stopped or deleted outside T3, T3 shows that state the next time it checks and offers the matching action. It does not report the change as an SSH error.
Acceptance criteria
From T3 Code alone, the user can stop a running boat-backed environment, see it as stopped, resume it, and continue an existing thread in it.
Extending auto-stop by a chosen duration moves the deadline T3 displays. The sandbox then stays running past the original deadline, which boat's API confirms.
With auto-stop due within the warning window and an agent turn running, T3 shows a warning that offers an extension before the sandbox stops.
Removing a boat-backed environment and choosing delete leaves no sandbox for it in the user's boat account. Choosing leave keeps the sandbox, and T3 states that it is still billed while running and that its disk is kept.
A sandbox deleted from boat's CLI or dashboard appears in T3 as gone, with an option to remove the environment, rather than as a repeated SSH reconnect failure.
Every lifecycle action reports boat errors, such as plan limits, permission errors, or an expired stopped disk, with the cause and the next step.
Affected area
The environment details and removal flow under Settings → Connections in apps/web and the desktop bridge.
The boat-backed environment record and API client introduced by the boat sandbox environment proposal.
Non-goals
Lifecycle controls for SSH environments that are not backed by boat, and for other sandbox providers.
Named snapshots, forks, or templates.
Cost dashboards or usage reporting beyond stating that a running sandbox is billed.
Blocked by
Add a boat sandbox as a remote environment (Add a boat sandbox as a remote environment #23344). This feature needs its boat-backed environment record, stored API key, and resume-and-reconnect path.
Supporting context
boat's sandbox API provides POST /sandboxes/{id}/stop, POST /sandboxes/{id}/resume, PATCH of ttlSeconds (which sets the deadline to the current time plus the new TTL), and DELETE with an X-Ascii-Confirm-Delete header that repeats the sandbox id. The API reports the states provisioning, ready, idle, running, archiving, archived (stopped), and error. Only boat's own integrated-agent prompts extend the deadline; processes T3 starts do not. Documented in boat's auto-stop guide.
During its trial, boat caps auto-stop at two hours.
Triage assessment
Impact level: not-applicable
Assessment status: not-applicable
Impact basis: This proposes new lifecycle controls for an environment type that does not exist yet. No existing T3 Code contract fails.
Workaround status: not-applicable
Workaround basis: No defect is involved. The same actions are available today through boat's CLI and dashboard.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Summary
For an environment backed by a boat sandbox, let the user see the sandbox's state and auto-stop deadline, extend or turn off auto-stop, and stop, resume, and delete the sandbox from T3 Code. Removing the environment also asks what to do with the sandbox, so no billed machine or disk is silently left behind.
Problem to solve
A boat sandbox bills per second while it runs. boat stops it at a deadline counted from creation or resume (one hour by default), not from activity, and an open SSH session does not extend that deadline. Without controls in T3 Code, a user who works through a boat-backed environment has two problems:
Removing the environment from T3 also leaves the sandbox and its disk in the boat account unless the user remembers to delete them in boat.
Proposed behavior
Acceptance criteria
Affected area
apps/weband the desktop bridge.Non-goals
Blocked by
Supporting context
POST /sandboxes/{id}/stop,POST /sandboxes/{id}/resume,PATCHofttlSeconds(which sets the deadline to the current time plus the new TTL), andDELETEwith anX-Ascii-Confirm-Deleteheader that repeats the sandbox id. The API reports the statesprovisioning,ready,idle,running,archiving,archived(stopped), anderror. Only boat's own integrated-agent prompts extend the deadline; processes T3 starts do not. Documented in boat's auto-stop guide.Triage assessment
All reactions