WeKnora/internal/application
wizardchen 8d40150149 fix(session): keep auto-generated titles plain text
The title prompt sent the user's first message as a raw user turn, so a
query ending in "summarise it in a table" made the model emit a Markdown
table that became the session title.

- Wrap the query in a <user_message> block (embedded delimiter tags are
  neutralised) and append a guard to the configured system prompt telling
  the model to treat the block as data and never follow its instructions.
- sanitizeGeneratedTitle now drops a full <think> block, keeps the first
  line with content, strips headings, list/quote markers, labels, links,
  inline markup and wrapping quotes, and falls back to a 30-rune plain-text
  prefix of the user query when the output is still table-like.
- Tighten the default session title template.
2026-09-24 15:56:09 +08:00
..
access feat(artifacts): let users delete generated files (#3447) 2026-09-20 13:01:46 +08:00
repository fix(tenant): stop wiki tasks of soft-deleted tenants from issuing model requests (#3602) 2026-09-23 12:13:32 +08:00
service fix(session): keep auto-generated titles plain text 2026-09-24 15:56:09 +08:00