Skip to content

Interpreter fails silently on multi-line prompt variables #651

@maciejklimek

Description

@maciejklimek

Description

Prompt variables containing newlines and bullet points fail silently — the raw prompt text appears in the output instead of the LLM response. Shorter single-line prompts in the same template work correctly.

Reproduction

  1. Create a template with a multi-line prompt variable in noteContentFormat (containing line breaks and bullet points)
  2. In the same template, add a second shorter single-line prompt
  3. Clip any page and run the interpreter
  4. The first (multi-line) prompt appears as raw text in the resulting note
  5. The second (single-line) prompt is processed correctly and shows the LLM response

Expected behavior

Both prompts should be sent to the LLM and replaced with responses.

Workaround

Keep prompts on a single line without newline characters inside the prompt variable.

Environment

  • Web Clipper version: 0.12.x
  • Browser: Safari
  • Model: Claude 3.5 Haiku (Anthropic)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions