diff --git a/docs/fragments.md b/docs/fragments.md index 3128db9..99584f4 100644 --- a/docs/fragments.md +++ b/docs/fragments.md @@ -73,7 +73,7 @@ Explain the difference between fragments and templates to me !end ``` -Additionally, any `!fragment` lines found in a prompt created with `!edit` will also be parsed. +Any `!fragment` lines found in a prompt created with `!edit` will not be parsed. (fragments-browsing)= ## Browsing fragments diff --git a/llm/cli.py b/llm/cli.py index 82f57e0..d840449 100644 --- a/llm/cli.py +++ b/llm/cli.py @@ -1156,11 +1156,7 @@ def chat( if edited_prompt is None: click.echo("Editor closed without saving.", err=True) continue - prompt, fragments, attachments = process_fragments_in_chat( - db, edited_prompt.strip() - ) - if not prompt and not fragments and not attachments: - continue + prompt = edited_prompt.strip() if prompt.strip().startswith("!fragment "): prompt, fragments, attachments = process_fragments_in_chat(db, prompt)