From c73ea6ad7aa4f56a711d2df8684c4d94b3ddca4c Mon Sep 17 00:00:00 2001 From: Snider Date: Sun, 22 Mar 2026 14:57:24 +0000 Subject: [PATCH] fix(dispatch): strip model variant from log filename Agent name like "codex:gpt-5.3-codex-spark" contains a colon which breaks file paths. Use base name (before ":") for the log file. Co-Authored-By: Virgil --- pkg/agentic/dispatch.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/agentic/dispatch.go b/pkg/agentic/dispatch.go index 5841f8b..7b4eebc 100644 --- a/pkg/agentic/dispatch.go +++ b/pkg/agentic/dispatch.go @@ -124,7 +124,9 @@ func (s *PrepSubsystem) spawnAgent(agent, prompt, wsDir string) (int, string, er repoDir := core.JoinPath(wsDir, "repo") metaDir := core.JoinPath(wsDir, ".meta") - outputFile := core.JoinPath(metaDir, core.Sprintf("agent-%s.log", agent)) + // Use base agent name for log file — colon in variants breaks paths + agentBase := core.SplitN(agent, ":", 2)[0] + outputFile := core.JoinPath(metaDir, core.Sprintf("agent-%s.log", agentBase)) // Clean up stale BLOCKED.md from previous runs fs.Delete(core.JoinPath(repoDir, "BLOCKED.md"))