fix(worker): broadcast WorktreeUpdated when a worktree is created

This commit is contained in:
mika kuns
2026-08-07 09:40:56 +02:00
parent c1184adc92
commit a7a3545e2b
2 changed files with 51 additions and 0 deletions
+3
View File
@@ -311,6 +311,9 @@ public sealed class TaskRunner
{
var wtCtx = await _wtManager.CreateAsync(task, list, ct);
await _broadcaster.WorkerLog($"Created worktree for \"{task.Title}\"", WorkerLogLevel.Info, DateTime.UtcNow);
// The worktrees row was just inserted; without this the UI keeps showing the task
// as having no worktree until some unrelated event happens to refresh it.
await _broadcaster.WorktreeUpdated(task.Id);
return new RunDirResult(wtCtx.WorktreePath, wtCtx, null);
}
catch (Exception ex)