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:
parent
d6864eb37c
commit
c73ea6ad7a
1 changed files with 3 additions and 1 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue