Skip to content

fix: prepare Daytona workspace root before start#2956

Open
seratch wants to merge 1 commit intomainfrom
fix/daytona-workspace-root
Open

fix: prepare Daytona workspace root before start#2956
seratch wants to merge 1 commit intomainfrom
fix/daytona-workspace-root

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented Apr 19, 2026

This pull request fixes Daytona sandbox startup when the default /home/daytona/workspace directory does not already exist. The modified _prepare_workspace_root() is internally called in start() method.

The Daytona session now prepares the manifest workspace root through the provider process API before runtime helper installation or other SDK exec paths use that root as cwd. This prevents startup from failing with a cd: no such file or directory error on fresh Daytona sandboxes.

The tests add a fake Daytona condition that reproduces the missing-root failure and verifies both successful root preparation and WorkspaceStartError handling when preparation fails.

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants