fix(01-02): read model/max_turns from persona settings object
Persona JSON nests model and max_turns under "settings" but the subprocess was looking for them at the top level, so --model and --max-turns were never passed to claude CLI. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
faab47afbd
commit
2302b75e14
1 changed files with 5 additions and 4 deletions
|
|
@ -153,10 +153,11 @@ class ClaudeSubprocess:
|
||||||
if self._persona:
|
if self._persona:
|
||||||
if "system_prompt" in self._persona:
|
if "system_prompt" in self._persona:
|
||||||
cmd.extend(["--system-prompt", self._persona["system_prompt"]])
|
cmd.extend(["--system-prompt", self._persona["system_prompt"]])
|
||||||
if "max_turns" in self._persona:
|
settings = self._persona.get("settings", {})
|
||||||
cmd.extend(["--max-turns", str(self._persona["max_turns"])])
|
if "max_turns" in settings:
|
||||||
if "model" in self._persona:
|
cmd.extend(["--max-turns", str(settings["max_turns"])])
|
||||||
cmd.extend(["--model", self._persona["model"]])
|
if "model" in settings:
|
||||||
|
cmd.extend(["--model", settings["model"]])
|
||||||
|
|
||||||
# Add --continue if prior session exists
|
# Add --continue if prior session exists
|
||||||
if (self._session_dir / ".claude").exists():
|
if (self._session_dir / ".claude").exists():
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue