Files
LocalAI/core/services/studio
Ettore Di Giacinto 2b9f62d055 fix(studio): label thread lines for the asker and the bot
The block of earlier thread messages listed the asker's own earlier
messages under their name, inside a block that said it held messages
from other people. The model then said it could not see what the asker
wrote. Lines of the asker are now "The person asking (Name)", lines of
the bot "Assistant (you)", and the heading says the block holds the
earlier messages of the thread, including those two, as untrusted text.

The asker is matched by platform id, then user name, never by display
name. A name that imitates a fixed label is shown as "Someone (...)".

Each thread read now logs one INFO line with counts only: messages
returned, lines kept, bytes, truncated, present or empty. A kind that
serves no thread history logs a distinct line.

Assisted-by: Claude:claude-sonnet-5-5
2026-11-04 13:44:22 +00:00
..