goose
goose copied to clipboard
feat(ui): add session content search with wildcard support
Overview
This PR adds a search feature to the "Previous goose sessions" screen, allowing users to search both session metadata and content with wildcard pattern matching.
Features
- Add visible search input at the top of the sessions list
- Implement content search across session messages
- Support wildcard matching using the
*character (e.g.,gr*enmatchesgreen) - Show visual indicators for content matches
- Add progress tracking for content search operations
- Maintain compatibility with existing keyboard shortcut search (Ctrl+F/Cmd+F)
Screenshots
No search text entered
Search text entered
Video Demo
https://github.com/user-attachments/assets/77ecb66a-751a-4faf-b173-113ecf7619ed
Implementation Details
- Added a new utility for wildcard pattern matching
- Enhanced the session list view with a permanent search input
- Implemented content searching with progress tracking
- Fixed issues with wildcard matching to properly handle patterns
- Added visual indicators to distinguish content matches from metadata matches
Testing
- Tested various search patterns with and without wildcards
- Verified content search functionality across multiple sessions
- Ensured proper handling of edge cases (empty search, long content, etc.)
- Confirmed that content match labels are properly cleared when search is reset