Skip to content

feat(site/src/pages/AIBridgePage/SessionThreadsPage): add in-session search across event types - #28054

Draft
johnstcn wants to merge 1 commit into
mainfrom
cian/aigov-462-featsite-add-in-session-search-across-all-event-types
Draft

feat(site/src/pages/AIBridgePage/SessionThreadsPage): add in-session search across event types#28054
johnstcn wants to merge 1 commit into
mainfrom
cian/aigov-462-featsite-add-in-session-search-across-all-event-types

Conversation

@johnstcn

Copy link
Copy Markdown
Member

Adds a search input to the AI Gateway session detail view that filters the session timeline across all event types: Bridge prompts, tool calls, and Agent Firewall network activity.

The search matches prompt text, tool names, tool input JSON, and network call destinations. While a query is active, the timeline shows only matching threads and network rows, the network panel header/blocked counts reflect the matches, and a "No events match your search." empty state appears when nothing matches. Clearing the search restores the full session.

Implementation plan
  • SessionThreadsPageView.tsx holds the searchQuery state and renders a reusable SearchField; it passes the query to the timeline.
  • SessionTimeline.tsx filters threads and networkCalls via useMemo, derives the network-panel summary counts from matching rows while searching (preserving the server-scoped summary/truncation note when idle), and shows the empty state.
  • sessionSearch.ts adds pure matchesThreadSearch / matchesNetworkCallSearch helpers with the strict field scope from the issue.
  • Tests: 9 unit tests for the pure helpers, plus Storybook interaction stories for both the page view and the timeline (search, clear, and no-match states). sessionSearch.ts is a pure-logic file, so its vitest coverage is appropriate per frontend conventions.

Notes:

  • The issue's dependency AIGOV-464 (render boundary events inline) is merged on main as a separate NetworkCallsTable panel above the threads (the unified inline-timeline refactor AIGOV-459 was canceled). This search filters the same entity arrays the timeline renders, so it works now and continues to work once boundary events move inline.
  • Sibling AIGOV-461 (event-type and allow/blocked filters) is intentionally out of scope to keep this PR single-purpose.

Refs https://linear.app/codercom/issue/AIGOV-462

Coder Agents generated. Please review and mark ready when satisfied.

@linear-code

linear-code Bot commented Aug 12, 2026

Copy link
Copy Markdown

AIGOV-462

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