Files
loki/scripts
CatoandClaude 5d3e7c7f87 fix(widget-chat): a visitor's brief is client work, and the chat never names one (#1283)
Seen live on bitbaum.orangecat.ch, 2026-10-17: with no model available the
site chat answered "look at Loki, derhochhinhousepartyrenner-ch-refresh-
68e1f49… or revamp-info". That slug is a stranger's website request that
startBriefProject turned into a project with no client flag, so it reached
the public fleet map and the concierge's keyword fallback.

- startBriefProject marks every brief project client_work = true: it is
  someone else's site on the studio's account, off every public surface
  until they agree (src/lib/register/client-work.ts).
- Migration 0113 backfills the flag on rows a brief already created
  (briefKind metadata, or a `<host>-refresh-<32 hex>` name) where no
  explicit answer was recorded.
- The concierge holds the same line itself: no unconsented client work, no
  project still named by its request id, no purpose that is the kickoff
  prompt — in the facts, the links and the fallback.
- The fallback no longer announces itself as broken ("A full answer isn't
  available right now"); it names the closest fit and says to ask again.

Tests: scripts/test/widget-chat-concierge.ts covers the brief, the
unconsented client and the wording.


Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-17 22:02:45 +02:00
..
…
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00