feat(site/src/pages/AIBridgePage/SessionThreadsPage): add in-session search across event types - #28054
Draft
johnstcn wants to merge 1 commit into
Draft
Conversation
…search across event types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsxholds thesearchQuerystate and renders a reusableSearchField; it passes the query to the timeline.SessionTimeline.tsxfiltersthreadsandnetworkCallsviauseMemo, 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.tsadds purematchesThreadSearch/matchesNetworkCallSearchhelpers with the strict field scope from the issue.sessionSearch.tsis a pure-logic file, so its vitest coverage is appropriate per frontend conventions.Notes:
mainas a separateNetworkCallsTablepanel 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.Refs https://linear.app/codercom/issue/AIGOV-462
Coder Agents generated. Please review and mark ready when satisfied.