From fcf38b95999555fc0fe537b8074cc9325f4d0019 Mon Sep 17 00:00:00 2001 From: stoltembergg Date: Tue, 24 Nov 2026 07:56:44 +0000 Subject: [PATCH] Create the local Bot workspace before worker calls index.ts createWorkspace mkdirs the Bot workspace for driverless targets; without it, a newly assigned Bot's first worker call spawns in a missing cwd. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- internal/computers/target.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/computers/target.go b/internal/computers/target.go index 52965db..0410706 100644 --- a/internal/computers/target.go +++ b/internal/computers/target.go @@ -220,6 +220,11 @@ func (t *Target) workDir(botID int64) string { func (t *Target) transport(botID int64) (worker.Transport, string, error) { dir := t.workDir(botID) if t.drv == nil { + // index.ts createWorkspace makes the local Bot workspace before the + // first worker call; a missing cwd aborts any spawned process. + if err := os.MkdirAll(dir, 0o700); err != nil { + return nil, "", err + } binary, err := os.Executable() if err != nil { return nil, "", err