Skip to content

Add full-text search to chat list#86

Open
mcintyre94 wants to merge 1 commit intomainfrom
add-full-text-search-to-wisp-chats-c59cf06d
Open

Add full-text search to chat list#86
mcintyre94 wants to merge 1 commit intomainfrom
add-full-text-search-to-wisp-chats-c59cf06d

Conversation

@mcintyre94
Copy link
Owner

Summary

  • Adds fullTextContent: String? to SpriteChat — populated on every saveMessages() call by joining all user and assistant text blocks (tool inputs/outputs excluded to keep size reasonable). SwiftData handles the migration automatically since it's optional.
  • Wires up .searchable in ChatSwitcherSheet (iPhone modal sheet) and SpriteNavigationPanel (iPad/Mac sidebar), filtering by chat display name or full conversation text.
  • No backfill for existing chats — fullTextContent starts populating on next save; name search still works for older chats.

Test plan

  • Open chat switcher on iPhone, type a word from a past conversation — matching chats appear, others are hidden
  • Clear search — all chats return
  • Search by custom chat name
  • On iPad/Mac, verify search field appears in the sidebar Chats section and filters correctly
  • Confirm open/closed chat sections both filter correctly in the sidebar
  • Create a new chat and send a message, then search for a word from that message — it matches

Notes

SpriteNavigationPanel.swift is missing a #Preview (pre-existing gap, out of scope for this PR).

🤖 Generated with Claude Code

Index user and assistant text content in SpriteChat.fullTextContent
(updated on every saveMessages call). Wire up .searchable in both
ChatSwitcherSheet (iPhone modal) and SpriteNavigationPanel (iPad/Mac
sidebar) to filter chats by name or conversation content.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant