Skip to main content

Manage sandbox capacity

Adjust concurrent workload limits, interpret infrastructure measurements and investigate work waiting for a sandbox.

16 min read

Open Settings > Sandboxes when agent work, chat or crawling cannot obtain an execution environment. The page separates your organization’s workload limits from the deployment’s actual infrastructure. Owners and Admins can change limits and decide when idle workspaces are deleted; Developers can read limits and aggregate capacity, without the private workspace list.

Identify the limit that matters

WorkloadDefaultWhat uses a slot
Agent workers2A worker starting or doing work: one for each task an agent works on at the same time. Each worker is a sandbox with its own workspace, reused for the agent’s later tasks.
Workflow sessions2A workflow run’s sandbox, shared by its sandbox work. Concurrent runs use separate slots.
Render sessions2A temporary sandbox rendering pages during website crawling, or a page the chat assistant reads that builds its content in the browser or whose site first checks the browser.
Light sandboxes2A short-lived sandbox in which the chat assistant runs code for one conversation, or the standard agent for one task run. An idle one gives way to the next request; see Light sandboxes for chat and tasks.

These are concurrency limits, not a count of tasks or a spending budget. An agent working three tasks at once holds three agent workers; a run that finds them all busy waits for one and starts on its own when one is free. Under Agent workers, Owners and Admins see how many agent runs are waiting for a free worker: the runs a higher limit would start now. A project's dispatch may hold up to 500 runs at once, as many as this limit can allow, but starts no more than the agent workers left free. Limits do not reserve infrastructure for the organization; all organizations share the deployment capacity.

The workload limits add up automatically. Their total must fit within the deployment capacity.

Change a workload limit

  1. Check the workload’s Allocated count and the infrastructure measurements below it.
  2. Enter a whole number from 1 to 500 for the relevant limit. Total organization sessions recalculates the sum of all four fields.
  3. Keep that total within deployment capacity, then select Save in the header. Discard restores the saved values.
  4. Reopen the page to confirm the saved limits and inspect whether new work can obtain an allocation.

For example, the defaults total 8. If deployment capacity is 10, a total of 10 is valid and 11 is refused. The server rechecks capacity when saving, so another observation may differ from the one you first saw. Your organization's connected devices add the sandboxes they run to the ceiling: with one device that runs 4, the total may reach 14.

Lowering a limit affects future admissions; it does not interrupt active work. If infrastructure data is unavailable, reductions remain possible but increases need a fresh capacity observation. If the operator lowered capacity below your existing total, reduce your limits before saving again. If organization allocation data itself cannot load, the fields remain unavailable instead of showing editable defaults.

Light sandboxes for chat and tasks

When a member asks the chat assistant for a Word, Excel, PowerPoint, or PDF file, a chart, or a calculation, it runs code in a light sandbox: an isolated environment that starts in about a second and keeps no workspace of its own. Make files and use skills in chat describes what members see. The standard agent does the same when a person starts it on a task: How a standard agent run works explains when it uses a worker instead.

Each conversation, and each task run, uses at most one light sandbox. A conversation's keeps its files between the assistant's steps and the member's follow-up messages, and Tale removes it after about five minutes without use; a task run's goes away as soon as the run ends. When the organization runs as many light sandboxes as Light sandboxes allows, a new request takes the slot of the one that has been idle longest, if it has been idle for at least 30 seconds. When every light sandbox is busy, the assistant tells the member to try again in a minute. A task run, which has nobody to ask again, waits up to about 90 seconds for one to free before it gives up; nothing else waits in a queue.

A light sandbox appears under Workspaces with the name of the person chatting, or of the person who started the task run, and the label Light sandbox. You can destroy it like any workspace; it cannot be pinned, because Tale removes it as soon as it is idle. Code in it runs with no credentials of your organization and sees only the files of its own conversation or task. Like every sandbox, it reaches public web addresses through the egress proxy, and on a Docker deployment it can also open connections to the other services on the sandbox network, such as the platform’s API, for which it holds no credential; cloud-metadata addresses are blocked. To limit the public hosts it may reach, set an egress allowlist as Limit sandbox destinations describes. To keep chat from running code at all, turn off Code under Chat tools; that setting governs the chat assistant only.

Read the infrastructure measurements

Deployment sandboxes shows the shared count and capacity. Your organization's sandboxes shows its current count, including idle environments kept for reuse.
MeasurementWhat it means
Deployment sandboxesRunning and starting environments across all organizations, compared with shared capacity. Kubernetes reports the namespace boundary.
Your organization's sandboxesThis organization’s running and starting environments, including idle ones kept for reuse. This is a count, not another organization limit.
Host CPU usageRecently used and total CPU cores for the host, including its other services.
Host memory usageUsed and total host memory, including other services and allowing for reclaimable cache.

Measurements refresh every 15 seconds; Refresh requests a new observation. Check its timestamp before interpreting it. CPU usage is the change between two samples; a first observation after a long gap takes about a second longer. Remote hosts may expose totals without usage. Kubernetes namespace access does not expose host measurements. Unavailable means unknown, not zero.

Explain an allocated or idle workspace

Owners and Admins can inspect Workspaces. A row identifies its agent or workflow run, runtime state, allocation state and running tasks. An agent has one row per worker: under its name, Worker 2 says which of its workers the row is, and Member worker 2 marks one that runs the agent for a Member who started its runs. Current tasks names each task by its key and title and opens it. These states answer different questions: a container may remain running for reuse after it has released its organization slot. A worker’s workspace stays listed while it is idle, as Stopped with Quota released, until you destroy it or Tale deletes it: when nobody has used it for the number of days your organization sets, when it is idle and the deployment runs short of disk space or the workspace outgrows your organization's limit, or when its agent, project or member is removed. Once the agent itself is deleted, the row reads Deleted agent until Tale has deleted the workspace. A workflow run’s workspace is reclaimed shortly after the run ends. If an environment on the Tale server disappears on its own, for example after a host restart or because it ran out of memory, its workspace keeps its files and reads Stopped, and the next run continues in it. This does not apply to an environment on a connected device.

Spend adds the metered cost of finished turns. A turn still running is included when it ends. Temporary crawler environments appear in capacity counts even without a standing workspace row.

When deployment capacity is full, Tale may reclaim an unpinned idle environment whose allocation is released and which confirms it has no ongoing work. Its persistent workspace files remain for the next start. Busy, pinned or unresponsive environments are not candidates. If there is no safe candidate, new work must wait for capacity. An environment whose task or run has finished stops after a few idle minutes, so its room frees soon after the work ends. An agent environment that runs Docker inside keeps its full idle time, so the next turn does not have to pull its images again.

Manage an existing workspace

Owners and Admins can use a workspace’s row menu:

ActionEffect
Stop taskCancels all currently running operations in that workspace. A worker works one task at a time, so this stops that task only; the agent’s other workers keep working.
Pin / UnpinKeeps the workspace exempt from automatic idle and expiry cleanup and from deletion for being unused, to free disk space or for its size, or restores normal cleanup. A chat's light sandbox cannot be pinned. A pinned allocation can continue holding capacity. If a pinned workspace’s environment disappears, for example after a host restart, Tale starts it again with its workspace files, and the workspace stays pinned.
DestroyAsks for confirmation, then removes the sandbox and its workspace files in the background: it unpins the workspace first and cancels running work. Until the workspace is gone, its row reads Destroying and you can go on using the page. If Tale still cannot remove it after several attempts, the workspace remains listed, unpinned, and reads Destroy failed; choose Destroy again to finish removing it. While the row reads Destroying, nothing new starts in that workspace. An agent's run that would use it takes another free worker of the agent; when none is free, it waits and reads Waiting for a workspace. A workflow run's step that needs the workspace fails at once with the reason, without waiting or trying again, because the files its earlier steps left are being deleted. Once the row is gone, the next start creates a fresh environment; if it reads Destroy failed instead, the waiting work continues in the old files.

Tale shows Task stopped only when every requested cancellation is confirmed. If one or more operations cannot be stopped, Action failed says how many. Operations already stopped remain stopped.

A pin change is saved durably and retried if its runtime acknowledgement fails, including after a backend worker restart or device outage. Retries apply the latest desired value to the same session incarnation; repeated unpin delivery does not extend its expiry.

Use stop when the current work should end but its files should remain. Before destruction, preserve outputs you still need and read the confirmation. Idle capacity reclamation preserves workspace files; explicit destruction and automatic deletion do not.

Delete unused workspaces automatically

A project agent keeps its files between runs in the workspaces of its workers: one for each task it has worked on at the same time, reused by its later tasks, and separate ones for each Member who starts its runs. Each worker’s workspace counts its days without use on its own. Tale deletes a workspace that nobody has used for the number of days your organization sets; Destroy still deletes one at once. Owners and Admins set this rule under Workspace cleanup, above Workspaces. Developers don't see that section.

With Delete unused workspaces on, a workspace nobody has used for the set number of days is deleted. Pinned workspaces are kept.
  1. Keep Delete unused workspaces switched on, as it is by default. While it is off, Tale deletes no workspace for being unused.
  2. Enter Days without use, a whole number from 1 to 3650; the default is 30. The days count from the last time the agent worked in the workspace, or from when it was unpinned.
  3. Select Save in the header. Discard restores the saved values.

A change never makes a workspace go early. After you switch deletion on or shorten the period, no workspace is deleted for being unused until the full number of days has passed since the change. The same wait follows the update that introduced the setting. Lengthening the period doesn't restart the wait; switching deletion off and on again does.

In Workspaces, a stopped agent workspace shows the day it will be deleted under its status: Deleted on … unless used again. A new run in the workspace starts the count again. A pinned workspace, or one a legal hold keeps, shows no date and is never deleted for being unused.

Free disk space and limit workspace size

A workspace keeps everything its agent installed and built, and every organization on the deployment shares the disk the workspaces live on. When that disk runs short of free space, the deployment refuses every new sandbox until space is freed, so Tale also deletes idle workspaces for the room they take. Owners and Admins set these rules under Workspace cleanup too:

  • Free disk space when it runs short is on by default. While the deployment's workspace disk has less free space than it keeps for new sandboxes, the hourly cleanup deletes the deployment's largest idle workspaces first, whichever organization they belong to, until twice that space is free again. Turn it off to keep your organization's workspaces out of it; the other organizations' idle workspaces are still deleted.
  • Limit workspace size is off by default. Turned on, the hourly cleanup deletes every idle workspace larger than Maximum size (GiB), a whole number from 1 to 10,240, whether the disk is short or not.
  • Minimum hours without use, 24 by default, is how long a workspace must go unused before either rule can delete it: a whole number from 1 to 8760.

Only an idle workspace goes: no sandbox runs in it, no run waits for it, and nobody has used it for the minimum hours. A pinned workspace, one a legal hold keeps, and one whose size Tale hasn't measured yet are never deleted for disk space or size. Tale decides again right before each deletion, so a workspace used again in between stays. The date under a stopped workspace's status counts days without use only: a workspace above the limit, or one deleted to free disk space, can go earlier. On a Kubernetes or Incus deployment, Tale can't measure workspaces, so neither rule deletes anything there.

Explain why a workspace disappeared

Besides deleting unused workspaces, Tale deletes a workspace when what it belongs to is removed, whatever the cleanup setting says:

  • Deleting a project agent deletes the workspaces of all its workers, including each Member's. Deleting a project does the same for every agent in it.
  • Removing a member from the organization deletes their own workspaces with every agent. Setting the member to Disabled instead keeps them.
  • Erasing a person's data deletes their own workspaces without waiting for work running in them.
  • Deleting the organization deletes all its sandboxes and their files, revokes the gateway keys issued to them, removes its model-provider keys from the model gateway, disconnects its devices and removes the build and package caches kept for it.

This happens within about a minute, or after the task ends if one is still running in the workspace. A pinned workspace goes too, but a legal hold keeps every workspace it covers: a hold on the organization keeps all of them, and a hold on a person keeps that person's own workspaces. An hourly cleanup also deletes leftovers that nothing owns any more, such as a workflow run's workspace that was never reclaimed.

Every workspace Tale deletes on its own, for one of these reasons, for being unused or for the room it takes, appears in the audit log under Settings > Governance > Logs as Sandbox workspace deleted. It is a system event in the Data category, and its metadata names the reason: agent_deleted, member_removed, member_erased, unused, orphaned, disk_pressure (deleted to free disk space) or over_size (larger than your organization's limit). For the last two, it also gives the size measured (workspaceBytes). The event is recorded once Tale has confirmed that the workspace's files are deleted, which can take a while for a large workspace. On Kubernetes, it is recorded once the workspace's volume is handed to the cluster's storage provisioner, which deletes it according to its StorageClass's reclaimPolicy; the metadata says which happened (deletion: done or handed_off). If deleting the files fails, the event appears with the status Failure, and the deletion is tried again until the files are gone. A sandbox service or device that is not yet updated to this version cannot confirm a deletion, so Tale records no event for its workspaces and keeps trying until it is updated. A leftover that nothing owns any more can end without an event: if its files are still being deleted when the hourly cleanup moves on, the sandbox service finishes deleting them, but Tale does not check on them again.

Resolve a blocked start

A start that finds no room waits, and its task says why under Run: Waiting for a worker when every agent worker of your organization is busy, Waiting for room when the deployment is full or short of memory or disk, Waiting for a workspace while an administrator destroys the workspace it would use, and Waiting for its sandbox while its sandbox finishes an earlier process. Owners and Admins also get a link to this page when the agent workers are all busy. When your organization's limits are in use, or the deployment is full or short of memory, the work starts on its own once room frees, and needs nothing from you. Disk space is different: stopping idle work frees none, because a stopped workspace keeps its files. Tale removes build caches that no session uses, if there are any, and within the hour deletes the largest idle workspaces, unless their organization keeps them out; when that frees too little, the start waits until workspaces are deleted, for example ones you destroy because you no longer need them, or until the operator frees disk space. When the deployment itself is full, its room goes to the work that has waited longest, whichever organization it belongs to, and each waiting start is told when its turn comes:

  • A task run waits in the queue. It is tried again as soon as a session ends, in your organization or in another one on the same deployment. When the deployment is full, it is also tried when its turn comes. Every two minutes, Tale also tries a few of each organization's waiting runs. A freed worker goes first to the agent with the fewest runs working, then to the run that has waited longest. When the deployment refused a run's worker, its next try takes another worker of its agent that can start, such as one on a connected device with a free slot; the workspace it was refused in keeps its files. A run that finds no room within 12 hours of its start fails, saying it waited too long for a free worker.
  • An automation's agent step tries again without using up its retries: when its turn comes if the deployment is full, otherwise after a pause that grows while the step keeps waiting, up to about two minutes. The run shows Waiting for a sandbox slot meanwhile. After two hours without room, the run fails with that reason. A workspace an administrator is destroying is no lack of room: the step fails at once instead, as described for Destroy above.
  • Crawling waits for its turn, then continues with its next batch.

Raise a workload limit only when its allocations are full and the new total fits shared capacity. If the deployment itself is full, increasing an organization limit cannot create infrastructure. To add capacity of your own, connect a device: new workspaces start on it. Otherwise, ask the operator to inspect capacity and host resources; a free container slot alone does not guarantee enough CPU, memory or disk space.

For a credential or model refusal, use AI providers. For a spending refusal, use Policies and limits. Self-hosted operators can inspect the deployment setting in the environment reference.