Skip to content

Commit 1b87c9f

Browse files
frdel3clyp50
authored andcommitted
Update agent.py
1 parent 192de15 commit 1b87c9f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

agent.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,6 @@ def parse_prompt(self, _prompt_file: str, **kwargs):
628628
def read_prompt(self, file: str, **kwargs) -> str:
629629
dirs = subagents.get_paths(self, "prompts")
630630
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.
633631
if files.is_full_json_template(prompt):
634632
prompt = files.remove_code_fences(prompt)
635633
return prompt

0 commit comments

Comments
 (0)