Skip to content

LLM chat prompts are duplicated when logged to the database if a template is used #1240

@simonw

Description

@simonw

Split from:

I chat with just hi in it resulted in this log:

# 2025-08-12T03:49:36    conversation: 01k2e6bmgtvxbgr4ggqf7ea548 id: 01k2e6bn4swxq0dj9hpsz49mtb

Model: **gpt-5-mini**

## Prompt

hi
hi

## Response

Hi — how can I help you today?

And in the DB:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions