Restore sandbox package behavior#1560
Conversation
- Move Explorer file staging into the docs route - Restore sandbox package files to pre-merge behavior - Keep Explorer route regression coverage docs-scoped
|
The latest Agentuity deployment details.
|
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughFiles are now base64-encoded and sent directly in sandbox execute requests instead of being staged separately. The route layer calls ChangesSandbox inline file encoding and execution
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📦 Canary Packages Publishedversion: PackagesInstallAdd to your {
"dependencies": {
"@agentuity/vector": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-vector-3.0.8-42073a2.tgz",
"@agentuity/server": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-server-3.0.8-42073a2.tgz",
"@agentuity/sandbox": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-sandbox-3.0.8-42073a2.tgz",
"@agentuity/analytics": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-analytics-3.0.8-42073a2.tgz",
"@agentuity/core": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-core-3.0.8-42073a2.tgz",
"@agentuity/telemetry": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-telemetry-3.0.8-42073a2.tgz",
"@agentuity/local": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-local-3.0.8-42073a2.tgz",
"@agentuity/cli": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-cli-3.0.8-42073a2.tgz",
"@agentuity/postgres": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-postgres-3.0.8-42073a2.tgz",
"@agentuity/runtime": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-runtime-3.0.8-42073a2.tgz",
"@agentuity/storage": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-storage-3.0.8-42073a2.tgz",
"@agentuity/aigateway": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-aigateway-3.0.8-42073a2.tgz",
"@agentuity/claude-code": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-claude-code-3.0.8-42073a2.tgz",
"@agentuity/email": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-email-3.0.8-42073a2.tgz",
"@agentuity/adapter": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-adapter-3.0.8-42073a2.tgz",
"@agentuity/hono": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-hono-3.0.8-42073a2.tgz",
"@agentuity/keyvalue": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-keyvalue-3.0.8-42073a2.tgz",
"@agentuity/schema": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-schema-3.0.8-42073a2.tgz",
"@agentuity/task": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-task-3.0.8-42073a2.tgz",
"@agentuity/webhook": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-webhook-3.0.8-42073a2.tgz",
"@agentuity/db": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-db-3.0.8-42073a2.tgz",
"@agentuity/migrate": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-migrate-3.0.8-42073a2.tgz",
"@agentuity/vite": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-vite-3.0.8-42073a2.tgz",
"@agentuity/queue": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-queue-3.0.8-42073a2.tgz",
"@agentuity/opencode": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-opencode-3.0.8-42073a2.tgz",
"@agentuity/coder": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-coder-3.0.8-42073a2.tgz",
"@agentuity/stream": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-stream-3.0.8-42073a2.tgz",
"@agentuity/coder-tui": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-coder-tui-3.0.8-42073a2.tgz",
"@agentuity/schedule": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-schedule-3.0.8-42073a2.tgz",
"@agentuity/drizzle": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-drizzle-3.0.8-42073a2.tgz",
"create-agentuity": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/create-agentuity-3.0.8-42073a2.tgz",
"@agentuity/pi": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-pi-3.0.8-42073a2.tgz"
}
}Or install directly: bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-vector-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-server-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-sandbox-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-analytics-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-core-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-telemetry-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-local-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-cli-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-postgres-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-runtime-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-storage-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-aigateway-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-claude-code-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-email-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-adapter-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-hono-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-keyvalue-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-schema-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-task-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-webhook-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-db-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-migrate-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-vite-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-queue-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-opencode-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-coder-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-stream-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-coder-tui-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-schedule-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-drizzle-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/create-agentuity-3.0.8-42073a2.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.8-42073a2/agentuity-pi-3.0.8-42073a2.tgz |
Summary
Restores the sandbox package files changed by #1559 and keeps the SDK Explorer fix scoped to the docs app.
packages/core/src/services/sandbox/execute.tsto pre-merge behaviorpackages/core/src/services/sandbox/run.tsto pre-merge behaviorpackages/server/test/sandbox-client.test.tsto pre-merge behaviordocs/src/api/sandbox/route.tsbefore callingsandboxExecute()sandboxExecute()is called without inlinefilesWhy
#1559 fixed the Explorer hang, but it also changed package-level sandbox behavior. That was too broad for a docs Explorer bug.
The safer correction is to keep package APIs and behavior unchanged, then make the Explorer route do its own staging:
That keeps the workaround at the call site that needs it.
Verification
git diff --checkbun test src/api/test/sandbox-route.test.tsbunx biome check docs/src/api/sandbox/route.ts docs/src/api/test/sandbox-route.test.ts packages/core/src/services/sandbox/execute.ts packages/core/src/services/sandbox/run.ts packages/server/test/sandbox-client.test.tscd docs && bun run typecheckcd packages/core && bun run typecheckcd packages/server && bun run typecheckSummary by CodeRabbit