[taskboard] auto-dispatch telegram swarm tasks

This commit is contained in:
2026-03-07 15:05:05 -08:00
parent 53259f6b37
commit 07c42e92a9
3 changed files with 79 additions and 10 deletions

View File

@@ -450,7 +450,7 @@ async function dispatchOpenClawTask(taskId: number): Promise<DispatchResult> {
await execFileAsync("git", ["config", "--global", "--add", "safe.directory", repoPath]);
const agentName = task.preferred_agent || "codex";
const agentName = task.preferred_agent || task.assignee || "codex";
const taskKey = `taskboard-${task.id}`;
const repoName = path.basename(repoPath);
const worktree = path.join(SWARM_WORKTREES_DIR, repoName, taskKey);