Skip to content

feat: implement HTTP timeout for Daytona sandbox execution - #1101

Merged
chiragjn merged 4 commits into
mainfrom
feat/daytona-request-exec-timeout
Oct 20, 2026
Merged

chiragjn merged 4 commits into
mainfrom
feat/daytona-request-exec-timeout

Conversation

@thesujai

@thesujai thesujai commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #

Changes

How was this tested?

Checklist

  • I have read the contributing guidelines
  • pnpm build, pnpm test, pnpm typecheck, pnpm lint:ci, and pnpm format:check pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code (packages/trueforge-sdk, python/trueforge_sdk, .github/fern/openapi/openapi.json, docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge
  • Docs / .env.example updated if configuration or behavior changed

Note

Low Risk
Narrows failure mode for stuck Daytona HTTP calls without changing auth or sandbox logic; 60s deadline may cause some slow non-exec calls to fail where they previously could hang.

Overview
Configures the Daytona SDK client with a 60s requestTimeoutMs when building sandbox providers, so HTTP calls (including toolbox/exec) cannot hang indefinitely and block an agent turn without a tool.response. The SDK uses this as a client-wide deadline while still allowing longer waits for executeCommand / codeRun (command timeout + 5s).

Adds DAYTONA_REQUEST_TIMEOUT_MS in providerUtils.ts and wires it into new Daytona({ apiKey, requestTimeoutMs: ... }). Unit tests pass a short requestTimeoutMs: 1000 on test clients; a patch changeset documents the behavior change.

Reviewed by Cursor Bugbot for commit 486313d. Bugbot is set up for automated code reviews on this repo. Configure here.

@changeset-bot

changeset-bot Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 486313d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@truefoundry/trueforge Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3bab035. Configure here.

Comment thread packages/trueforge/src/sandbox/providerUtils.ts Outdated
@thesujai
thesujai force-pushed the feat/daytona-request-exec-timeout branch from a267f76 to 3bab035 Compare October 19, 2026 18:40
@chiragjn
chiragjn merged commit d233f44 into main Oct 20, 2026
16 checks passed
@chiragjn
chiragjn deleted the feat/daytona-request-exec-timeout branch October 20, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants