agent/new: parse cwd parameter into CwdOverride

The cwd= parameter in agent/new payloads was not being parsed,
so scripts like ollie-session-here could not set agent cwd on
creation. Now parsed and passed to AgentParams.CwdOverride.
This commit is contained in:
Levi Neely 2026-10-07 15:32:53 +02:00
parent a899f933fb
commit c2df632744
1 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,8 @@ func parseAgentNewRequest(data []byte) agentNewRequest {
r.Params.Remote = v r.Params.Remote = v
case "profile", "agent": case "profile", "agent":
r.Params.Profile = v r.Params.Profile = v
case "cwd":
r.Params.CwdOverride = v
case "prompt": case "prompt":
r.Prompt = v r.Prompt = v
case "parent": case "parent":