multica-ai/multica · error
refusing to spawn agent: task has no workspace_id (task_id=%
Error message
refusing to spawn agent: task has no workspace_id (task_id=%s)
What it means
Error "refusing to spawn agent: task has no workspace_id (task_id=%s)" thrown in multica-ai/multica.
Source
Thrown at server/internal/daemon/daemon.go:6084
}
return SkillRefData{
ID: bundle.ID,
Source: bundle.Source,
Hash: manifest.Hash,
SizeBytes: manifest.SizeBytes,
FileCount: manifest.FileCount,
Files: fileRefs,
}
}
func (d *Daemon) runTask(ctx context.Context, task Task, provider string, slot int, taskLog *slog.Logger) (taskResult TaskResult, returnErr error) {
// Refuse to spawn an agent without a workspace. An empty workspace_id
// here would make MULTICA_WORKSPACE_ID empty in the agent env, and the
// CLI would otherwise silently fall back to the user-global config — a
// path that can leak operations into an unrelated workspace when
// multiple workspaces share a host.
if task.WorkspaceID == "" {
return TaskResult{}, fmt.Errorf("refusing to spawn agent: task has no workspace_id (task_id=%s)", task.ID)
}
prepareTimeout := d.effectiveTaskPrepareTimeout()
prepareCtx, cancelPrepare := context.WithTimeoutCause(ctx, prepareTimeout, errTaskPrepareTimeout)
prepareComplete := false
defer func() {
cancelPrepare()
if prepareComplete || returnErr == nil || !errors.Is(context.Cause(prepareCtx), errTaskPrepareTimeout) {
return
}
// Collapse every deadline shape (context deadline, HTTP cancellation,
// or the explicit waitForExecutionEnvironment cause) into one sentinel
// that handleTask can classify as a retryable platform timeout.
taskResult = TaskResult{}
returnErr = fmt.Errorf("%w after %s", errTaskPrepareTimeout, prepareTimeout)
}()
// task.Repos is the authoritative repo list for this task — when theView on GitHub (pinned to 2c0912b6ec)
Solutions
- Recreate the task with a workspace_id; the daemon refuses to spawn agents without one.
When it happens
Trigger: Thrown at server/internal/daemon/daemon.go:6084 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/b006dd618a746276.
Report an issue: GitHub.