Description
Extends the sessions page search to also match against tool action names (actionName) and toolkit slugs (provider) in ClickHouse. Previously, search only matched on session ID and user ID — now typing "gmail", "SEND_EMAIL", "hackernews", etc. surfaces all sessions that used those tools.
Changes:
listSessions.ts: Moved search to HAVING clause (post-GROUP BY) using arrayExists over groupUniqArray(actionName) and groupUniqArray(provider), so aggregates (toolCallCount, errorCount, timestamps) reflect the full session — not just matching rows
sessions-config.tsx: Updated search placeholder to reflect new searchable fields
How did I test this PR
- Ran ClickHouse queries directly to verify the extended search works:
- Searching "gmail" returns sessions with gmail provider, with correct full-session aggregate counts ✅
- Searching "SEND_EMAIL" returns sessions with matching action names ✅
- Verified a session with 107 total calls across 4 toolkits shows
toolCallCount: 107 (not the subset count) ✅
- Ran
oxlint on changed files — 0 errors, 0 warnings
- Codex review: LGTM, no issues found
- Browser E2E test: searched "hackernews" and "HACKERNEWS_GET" on sessions page, both correctly surface matching session
Video demo: https://pub-b70cb36a6853407fa468c5d6dec16633.r2.dev/260902/generic/file_upload/request/714a79cccd6f93746ca676ca62d37148
Triggered by: abir@composio.dev | Source: slack
Session: https://zen-api-production-4c98.up.railway.app/dashboard/#/chat/zen-c9c449dacb27