Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix: replace hardcoded Unix path separators with filepath.Join and os.TempDir (#860)
devv-eve6c92108b099e
diff --git a/server/cmd/multica/cmd_daemon.go b/server/cmd/multica/cmd_daemon.goindex 1eae904d94..7a6f89b90b 100644--- a/server/cmd/multica/cmd_daemon.go+++ b/server/cmd/multica/cmd_daemon.go@@ -8,6 +8,7 @@ import ("net/http""os""os/exec"+ "path/filepath""strconv""strings""time"@@ -82,11 +83,11 @@ func daemonDirForProfile(profile string) string {}func daemonPIDPathForProfile(profile string) string {- return daemonDirForProfile(profile) + "/daemon.pid"+ return filepath.Join(daemonDirForProfile(profile), "daemon.pid")}func daemonLogPathForProfile(profile string) string {- return daemonDirForProfile(profile) + "/daemon.log"+ return filepath.Join(daemonDirForProfile(profile), "daemon.log")}// healthPortForProfile returns the health check port for the given profile.diff --git a/server/internal/daemon/execenv/codex_home.go b/server/internal/daemon/execenv/codex_home.goindex aca5530afa..181b2e95b7 100644--- a/server/internal/daemon/execenv/codex_home.go+++ b/server/internal/daemon/execenv/codex_home.go@@ -87,7 +87,7 @@ func resolveSharedCodexHome() string {}home, err := os.UserHomeDir()if err != nil {- return filepath.Join("/tmp", ".codex") // last resort fallback+ return filepath.Join(os.TempDir(), ".codex") // last resort fallback}return filepath.Join(home, ".codex")}