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 <virgil@lethean.io>
This commit is contained in:
Snider 2026-03-22 14:57:24 +00:00
parent d6864eb37c
commit c73ea6ad7a

View file

@ -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"))