豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
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.

4 participants