diff --git a/telegram/claude_subprocess.py b/telegram/claude_subprocess.py index 9b09345..cc054ce 100644 --- a/telegram/claude_subprocess.py +++ b/telegram/claude_subprocess.py @@ -153,10 +153,11 @@ class ClaudeSubprocess: if self._persona: if "system_prompt" in self._persona: cmd.extend(["--system-prompt", self._persona["system_prompt"]]) - if "max_turns" in self._persona: - cmd.extend(["--max-turns", str(self._persona["max_turns"])]) - if "model" in self._persona: - cmd.extend(["--model", self._persona["model"]]) + settings = self._persona.get("settings", {}) + if "max_turns" in settings: + cmd.extend(["--max-turns", str(settings["max_turns"])]) + if "model" in settings: + cmd.extend(["--model", settings["model"]]) # Add --continue if prior session exists if (self._session_dir / ".claude").exists():