Update agent.py
frdel committed
Dec 30, 2025 at 09:46 UTC
00108450a5daa65759395d30ed315debdf0308a5
1 file changed
-2
agent.py
-2
@@ -628,8 +628,6 @@ class Agent:
628
def read_prompt(self, file: str, **kwargs) -> str:
629
dirs = subagents.get_paths(self, "prompts")
630
prompt = files.read_prompt_file(file, _directories=dirs, _agent=self, **kwargs)
631
- # Only strip code fences when the *entire* prompt is a JSON template (e.g. fw.initial_message.md),
632
- # so embedded fenced examples in markdown prompts remain intact.
631
if files.is_full_json_template(prompt):
632
prompt = files.remove_code_fences(prompt)
633
return prompt