diff --git a/internal/cloud/run.go b/internal/cloud/run.go index f34b9f0..04d5ff8 100644 --- a/internal/cloud/run.go +++ b/internal/cloud/run.go @@ -137,7 +137,7 @@ func (service *runService) CreateRun(ctx context.Context, options CreateRunOptio return nil, err } - if w.Locked && !options.PlanOnly { + if w.Locked && !options.PlanOnly && w.CurrentRun != nil { return nil, errors.New("run has been specified as non-speculative and the workspace is currently locked") }