Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(daemon): sync workspaces immediately on startup

Jiayuan219b174819fa
diff --git a/server/internal/daemon/daemon.go b/server/internal/daemon/daemon.go
index c4431d14a0..cc782df1ec 100644
--- a/server/internal/daemon/daemon.go
+++ b/server/internal/daemon/daemon.go
@@ -283,6 +283,9 @@ func (d *Daemon) configWatchLoop(ctx context.Context) {
// and adds any new ones to the CLI config. The configWatchLoop will then
// detect the config change and register runtimes for the new workspaces.
func (d *Daemon) workspaceSyncLoop(ctx context.Context) {
+ // Run immediately on startup before entering the periodic loop.
+ d.syncWorkspacesFromAPI(ctx)
+
ticker := time.NewTicker(DefaultWorkspaceSyncInterval)
defer ticker.Stop()