Add full-text search over conversations #6

Merged
jacensekai merged 1 commit from conversation-search into master 2026-10-13 20:27:23 -04:00
Owner

Past conversations could only be found by scrolling the sidebar, and the
agent had no way to look back at earlier chats unless it had written
something into its notes.

Index the content of user and assistant messages in an external-content
FTS5 table (unicode61, diacritics removed), kept current by triggers on
messages and backfilled once for existing databases. Tool output is left
out so fetched pages and command output don't drown the results. Typed
text is always quoted into words and phrases, with the last word as a
prefix, so it can never be an FTS5 syntax error.

  • GET /api/search returns one hit per conversation (best message, match
    count, or a title-only match), most recently active first.
  • The sidebar gets a search box; results show highlighted snippets and
    open #/c//m/, which scrolls to and flashes the message.
  • conversation_search and conversation_read let the agent find and read
    past conversations.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Past conversations could only be found by scrolling the sidebar, and the agent had no way to look back at earlier chats unless it had written something into its notes. Index the content of user and assistant messages in an external-content FTS5 table (unicode61, diacritics removed), kept current by triggers on messages and backfilled once for existing databases. Tool output is left out so fetched pages and command output don't drown the results. Typed text is always quoted into words and phrases, with the last word as a prefix, so it can never be an FTS5 syntax error. - GET /api/search returns one hit per conversation (best message, match count, or a title-only match), most recently active first. - The sidebar gets a search box; results show highlighted snippets and open #/c/<id>/m/<messageId>, which scrolls to and flashes the message. - conversation_search and conversation_read let the agent find and read past conversations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add full-text search over conversations
Some checks failed
CI / Typecheck, build and test (pull_request) Successful in 17s
CI / Compose stack smoke test (pull_request) Failing after 6s
CI / End-to-end (Playwright) (pull_request) Successful in 57s
CI / Docker images and sandbox (pull_request) Failing after 11s
9ab01b3c5f
Past conversations could only be found by scrolling the sidebar, and the
agent had no way to look back at earlier chats unless it had written
something into its notes.

Index the content of user and assistant messages in an external-content
FTS5 table (unicode61, diacritics removed), kept current by triggers on
messages and backfilled once for existing databases. Tool output is left
out so fetched pages and command output don't drown the results. Typed
text is always quoted into words and phrases, with the last word as a
prefix, so it can never be an FTS5 syntax error.

- GET /api/search returns one hit per conversation (best message, match
  count, or a title-only match), most recently active first.
- The sidebar gets a search box; results show highlighted snippets and
  open #/c/<id>/m/<messageId>, which scrolls to and flashes the message.
- conversation_search and conversation_read let the agent find and read
  past conversations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jacensekai/lumina!6
No description provided.