feat(ask): persistent conversations, history & per-brief follow-ups - #6
Merged
Conversation
Ask AI is now a real assistant with memory, and daily briefs are browsable. Backend: - migration 009 + queries/conversations.ts: conversations + messages tables (a thread may be anchored to a brief). briefings.byId/listRecent. - /ask persists each exchange to a conversation, weaves prior turns + the anchored brief into the prompt for follow-ups, and returns the thread id via the X-Conversation-Id header. - New routes: GET/DELETE /conversations[/:id]; GET /insights/briefings (recent briefs, INCLUDING prior regenerations so old versions are kept). Frontend: - AskClaude: persistent thread, a slide-in History drawer (reopen/continue/ delete past chats), New-chat, and "Following up on your <date> brief" when opened from a brief. - InsightsPanel: a "Discuss" button (opens Ask anchored to the shown brief) and a past-briefs browser — view any earlier brief (incl. regenerations) and discuss it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes Ask AI a persistent assistant and surfaces brief history with follow-ups — the sixth item from the batch.
Backend
queries/conversations.ts:conversations+conversation_messagestables. A thread can be anchored to a daily brief./askpersists each exchange, weaves prior turns + the anchored brief into the prompt for follow-ups, and returns the thread id via theX-Conversation-Idheader.GET/DELETE /api/conversations[/:id];GET /api/insights/briefings— recent briefs including prior regenerations (old versions kept).Frontend
Verification
Backend endpoints verified over HTTP (conversations persist with messages + anchor date; brief history keeps both regenerations). typecheck + lint + 20 tests + web build green. Full AI round-trip verified on deploy (CLI lives on the box).
🤖 Generated with Claude Code