Files
CatoandClaude Fable 5.1 dbe9caaa49 feat(cat): temporary chat — never listed, never remembered, gone when you leave (#1374)
* feat(cat): temporary chat — never listed, never remembered, gone when you leave

"Temporary chat" in the conversations rail: the row the first send creates
is `ephemeral` (cat_conversations.ephemeral, migration 20261021120000). It is
never in the list, the Cat learns no memories from it, and it is deleted the
moment the person leaves it — a new chat, another thread, a closed tab (the
delete goes with keepalive). The daily cleanup cron sweeps any left behind
by a dead phone. The toolbar says "Temporary chat" while one is open or
armed. src/lib/chat/temporary-chat.ts holds the leave rule, pure and tested.

The cleanup cron's tasks moved to services/maintenance/cleanup-tasks.ts to
keep the route under its size limit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* test(cron): the cleanup test knows the temporary-chat sweep; unique migration timestamp

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* fix(cat): the answer row sits under the answer, not inside the provenance line

It was inserted inside the provider · model span (#1373); CodeQL flagged
the guard that misplacement made always-true. Now it follows the
provenance block, on every assistant answer with content.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-21 07:23:34 +02:00
..