Skip to content
Source
Sign inSign up
TanStack/ai

fix: make default Daytona + Grok/Codex sandbox runs work #1094

MergedAlemTuzlakmerged 7 commits intomain fromrefs/pull/1094/headmerged by AlemTuzlak View on GitHub

Showing 46 changed files with 32 additions and 1 deletion (loading 43).

x
0 of 46 viewed, 46 left
12 additions and 0 deletions.changeset/daytona-headless-edges.mdAdded
View file
@@ -0,0 +1,12 @@
+---
+'@tanstack/ai-sandbox': patch
+'@tanstack/ai-sandbox-daytona': minor
+'@tanstack/ai-grok-build': patch
+'@tanstack/ai-codex': patch
+'@tanstack/ai-acp': patch
+'@tanstack/ai-claude-code': patch
+---
+​
+fix: make default Daytona + Grok/Codex sandbox runs work without extra wrappers
+​
+Headless Grok and Codex stay permissive when policy is deny-only plus default allow. Daytona remaps `/workspace`, starts stopped sandboxes on resume, keeps secrets out of create-time envVars and command strings, and uses native fs/git plus session stdin. Nested skills project by name. Durable Grok journals when durability is wired.
1 addition and 1 deletiondocs/adapters/codex.mdModified
View file
@@ -53,7 +53,7 @@
| Option | Description |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `cwd` | Working directory for the harness session. Defaults to `process.cwd()`. |
-| `sandboxMode` | Codex sandbox: `'read-only'` (harness default), `'workspace-write'`, or `'danger-full-access'`. This is the safety boundary on a server. |
+| `sandboxMode` | Codex sandbox: `'read-only'`, `'workspace-write'`, or `'danger-full-access'`. Default is `'workspace-write'` on local-process and Docker. Default is `'danger-full-access'` on Daytona and Cloudflare, because those providers cannot create a nested bubblewrap namespace. Isolation is then the outer VM plus `defineSandboxPolicy`. |
| `approvalPolicy` | Codex approval policy. Defaults to `'never'` — headless runs have no approval UI, so anything else can stall a turn. |
| `modelReasoningEffort` | `'minimal'` \| `'low'` \| `'medium'` \| `'high'` \| `'xhigh'`. |
| `skipGitRepoCheck` | Skip the harness's git-repo safety check. Defaults to `true` (server adapters routinely point at scratch directories). |