diff options
Diffstat (limited to 'internal/executor/claude.go')
| -rw-r--r-- | internal/executor/claude.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/executor/claude.go b/internal/executor/claude.go index 8486427..7b3884c 100644 --- a/internal/executor/claude.go +++ b/internal/executor/claude.go @@ -40,6 +40,9 @@ func (r *ClaudeRunner) Run(ctx context.Context, t *task.Task, e *storage.Executi "CLAUDOMATOR_TASK_ID="+t.ID, ) if t.Claude.WorkingDir != "" { + if _, err := os.Stat(t.Claude.WorkingDir); err != nil { + return fmt.Errorf("working_dir %q: %w", t.Claude.WorkingDir, err) + } cmd.Dir = t.Claude.WorkingDir } |
