feat: strip speaker labels from the transcript, add a plain-prose prompt #9

Merged
adrianbonpin merged 1 commits from feat/minimal-transcript into prod 2026-10-03 21:28:39 +00:00
1 Commits
Author SHA1 Message Date
adrianbonpin 7abab06bda feat: strip speaker labels from the transcript, add a plain-prose prompt
The transcript labelled every message with a bold `**You**` or `**Lam**`,
which put both speakers at identical visual weight. The answer is what
gets read, so it now carries the emphasis alone:

- no speaker labels; the question is identified by its blockquote
  styling (dimmed, italic, left rule) and the answer is plain body text
- nothing in the transcript is bold except an error
- tool calls collapse from a bold header plus a bullet list to one
  italic line: _Tools: `web_search`, `get_fetch`_

Raycast solves the same problem with alignment (right-aligned bubbles),
but markdown has no alignment control, so styling is the only lever.

sessionToPlainText keeps its labels, and now says why: the transcript's
styling is gone by the time text reaches a clipboard.

The default system prompt gains explicit style rules: no em dashes, no
generated-text tells ("it's not just X, it's Y", "not just... but also",
"Great question", "I hope this helps"), avoid delve/tapestry/landscape/
leverage/robust/seamless/realm/testament, no restating the question, and
bold reserved for the direct answer to a factual question. This only
affects new answers; existing ones are already stored as rendered.

Verified on screen: the transcript reads as an answer with its question
quoted underneath, with no labels. typecheck, eslint, 130 tests and
vici build all pass.
2026-10-04 05:26:45 +08:00