Preserve lastError on sandbox info responses - #1617
Merged
Merged
Conversation
|
The latest Agentuity deployment details.
View deployment logs with the Agentuity CLI: |
Contributor
📝 WalkthroughWalkthroughChangesSandbox error propagation
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
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/task": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-task-3.1.9-ed5c3c1.tgz",
"@agentuity/runtime": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-runtime-3.1.9-ed5c3c1.tgz",
"@agentuity/aigateway": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-aigateway-3.1.9-ed5c3c1.tgz",
"@agentuity/analytics": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-analytics-3.1.9-ed5c3c1.tgz",
"@agentuity/cli": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-cli-3.1.9-ed5c3c1.tgz",
"create-agentuity": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/create-agentuity-3.1.9-ed5c3c1.tgz",
"@agentuity/migrate": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-migrate-3.1.9-ed5c3c1.tgz",
"@agentuity/genesis": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-genesis-3.1.9-ed5c3c1.tgz",
"@agentuity/coder": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-coder-3.1.9-ed5c3c1.tgz",
"@agentuity/server": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-server-3.1.9-ed5c3c1.tgz",
"@agentuity/vite": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-vite-3.1.9-ed5c3c1.tgz",
"@agentuity/stream": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-stream-3.1.9-ed5c3c1.tgz",
"@agentuity/client": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-client-3.1.9-ed5c3c1.tgz",
"@agentuity/schedule": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-schedule-3.1.9-ed5c3c1.tgz",
"@agentuity/webhook": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-webhook-3.1.9-ed5c3c1.tgz",
"@agentuity/opencode": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-opencode-3.1.9-ed5c3c1.tgz",
"@agentuity/telemetry": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-telemetry-3.1.9-ed5c3c1.tgz",
"@agentuity/schema": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-schema-3.1.9-ed5c3c1.tgz",
"@agentuity/queue": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-queue-3.1.9-ed5c3c1.tgz",
"@agentuity/coder-tui": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-coder-tui-3.1.9-ed5c3c1.tgz",
"@agentuity/adapter": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-adapter-3.1.9-ed5c3c1.tgz",
"@agentuity/skills": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-skills-3.1.9-ed5c3c1.tgz",
"@agentuity/api": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-api-3.1.9-ed5c3c1.tgz",
"@agentuity/core": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-core-3.1.9-ed5c3c1.tgz",
"@agentuity/email": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-email-3.1.9-ed5c3c1.tgz",
"@agentuity/hono": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-hono-3.1.9-ed5c3c1.tgz",
"@agentuity/keyvalue": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-keyvalue-3.1.9-ed5c3c1.tgz",
"@agentuity/storage": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-storage-3.1.9-ed5c3c1.tgz",
"@agentuity/vector": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-vector-3.1.9-ed5c3c1.tgz",
"@agentuity/config": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-config-3.1.9-ed5c3c1.tgz",
"@agentuity/claude-code": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-claude-code-3.1.9-ed5c3c1.tgz",
"@agentuity/db": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-db-3.1.9-ed5c3c1.tgz",
"@agentuity/sandbox": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-sandbox-3.1.9-ed5c3c1.tgz",
"@agentuity/pi": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-pi-3.1.9-ed5c3c1.tgz",
"@agentuity/drizzle": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-drizzle-3.1.9-ed5c3c1.tgz",
"@agentuity/postgres": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-postgres-3.1.9-ed5c3c1.tgz"
}
}Or install directly: bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-task-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-runtime-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-aigateway-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-analytics-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-cli-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/create-agentuity-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-migrate-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-genesis-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-coder-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-server-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-vite-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-stream-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-client-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-schedule-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-webhook-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-opencode-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-telemetry-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-schema-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-queue-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-coder-tui-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-adapter-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-skills-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-api-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-core-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-email-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-hono-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-keyvalue-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-storage-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-vector-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-config-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-claude-code-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-db-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-sandbox-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-pi-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-drizzle-3.1.9-ed5c3c1.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.9-ed5c3c1/agentuity-postgres-3.1.9-ed5c3c1.tgz |
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
SandboxInfoDataSchemaandSandboxInfoSchemagain optionallastErrorsandboxGetpreserves the field in the returnedSandboxInfoWhy
The platform records a sanitized failure reason for failed sandboxes and returns it on the info endpoint, but the SDK schema stripped the field, so SDK consumers saw only
status: "failed"with no cause and had no way to surface or log why a sandbox died. The platform omits the field entirely when there is no error (never an explicitnull), soz.string().optional()matches the wire format exactly.Verification
bun test packages/sandbox/test/get.test.ts: red first (0 pass, 1 fail,lastErrormissing), green after (1 pass, 0 fail)tsgo --noEmit, package build,bun run lint(Biome, 1771 files): all cleanorigin/mainFollow-ups
lastErrorinagentuity cloud sandbox getoutput and the sandbox docs/API reference (tracked separately).