Skip to content

Add session deletion and search functionality#25

Merged
gricha merged 2 commits intomainfrom
feature/session-delete-search
Jan 7, 2026
Merged

Add session deletion and search functionality#25
gricha merged 2 commits intomainfrom
feature/session-delete-search

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 7, 2026

Summary

  • Add session deletion with confirmation dialog
  • Add always-visible search input to filter sessions

Session Deletion

  • Hard delete removes JSONL files from container filesystem
  • Works for Claude Code, OpenCode, and Codex sessions
  • Cleans up session metadata and cache on delete
  • Confirmation dialog before deletion

Session Search

  • Debounced search input above session list
  • Filters by session name, first prompt, ID, and project path
  • Shows "X of Y sessions" count when filtering
  • "No sessions match" message for empty results

Test plan

  • Delete a Claude Code session and verify file is removed
  • Delete an OpenCode session and verify cleanup
  • Search sessions by name/prompt
  • Clear search and verify all sessions show
  • Verify rapid tab switching still works with cached terminals

🤖 Generated with Claude Code

@gricha gricha force-pushed the feature/session-delete-search branch from 7d052e8 to 49d4093 Compare January 7, 2026 05:48
Comment on lines +336 to +344
const deleteSessionMutation = useMutation({
mutationFn: ({ sessionId, agentType }: { sessionId: string; agentType: AgentType }) =>
api.deleteSession(name!, sessionId, agentType),
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['sessions', name] })
queryClient.invalidateQueries({ queryKey: ['recentSessions'] })
setDeleteSessionDialog(null)
},
})

This comment was marked as outdated.

gricha and others added 2 commits January 7, 2026 06:21
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Implement full-text search using ripgrep across all session files
- Move search bar into sessions navbar (no extra vertical space)
- Add optimistic updates for instant deletion feedback
- Fix e2e test for stop button (now in settings tab)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gricha gricha force-pushed the feature/session-delete-search branch from 49d4093 to 3fef069 Compare January 7, 2026 06:46
@gricha gricha merged commit edb2ca8 into main Jan 7, 2026
6 checks passed
@gricha gricha deleted the feature/session-delete-search branch January 7, 2026 06:55
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