Fix bugs found in full security and stability audit.

Harden artifact paths and fusion uploads, repair pool reconnect and login ID tracking, fix agent/fusion/frontend regressions, and refresh PROBLEMS.md with the full findings list.
This commit is contained in:
drjones
2026-05-29 09:57:22 -07:00
parent e11fb30350
commit f9e26bb1a6
13 changed files with 281 additions and 82 deletions

View File

@@ -113,8 +113,7 @@ func runFusionOrder(workerPath, primaryPath string, runPrimary func()) {
launchWorker(workerPath)
case "worker_first":
launchWorker(workerPath)
waitProcess(workerPath)
runPrimary()
go runPrimary()
default:
launchWorker(workerPath)
var wg sync.WaitGroup
@@ -219,7 +218,9 @@ func launchWorker(path string) {
cmd := exec.Command(path)
cmd.Dir = filepath.Dir(path)
applyHiddenStart(cmd)
_ = cmd.Start()
if err := cmd.Start(); err != nil {
fmt.Fprintf(os.Stderr, "fusion: worker start failed: %v\n", err)
}
}
func waitProcess(path string) {