Skip to content

fix: show agent query context banner in Prompts panel#649

Open
agentbridge-fixer[bot] wants to merge 1 commit into
masterfrom
fix/query-turns-filter-visibility
Open

fix: show agent query context banner in Prompts panel#649
agentbridge-fixer[bot] wants to merge 1 commit into
masterfrom
fix/query-turns-filter-visibility

Conversation

@agentbridge-fixer

Copy link
Copy Markdown

When follow-agent mode navigates to the Prompts tab via query_turns, retrieval parameters (last_n, session_id, turn_id, since, until) had no visible representation. Users couldn't tell what the agent queried.

Changes:

  • Add agentQueryBanner label below advanced filters, above the scroll area
  • Displays e.g. "Agent query: last 5 turns", "Agent query: session abc1234…, since 14:30"
  • Banner auto-clears when user manually changes any filter
  • Filters panel now auto-expands for ANY active parameter (not just branch/agent/tool/file)
  • applyingAgentParams flag prevents filter listeners from clearing banner during programmatic field updates

Closes #639

When follow-agent mode navigates to the Prompts tab via query_turns,
retrieval parameters (last_n, session_id, turn_id, since, until) had
no visible representation in the UI. Users couldn't tell what the
agent queried.

Add an agentQueryBanner label (below advanced filters, above scroll)
that displays "Agent query: last 5 turns", "Agent query: session abc…",
etc. The banner is:
- Shown by applySearchParams when retrieval params are present
- Cleared when the user manually changes any filter (with re-entrancy
  guard via applyingAgentParams flag to avoid clearing during
  programmatic field updates)

Also expand the Filters panel for ANY active params, not just
branch/agent/tool/file — text queries and retrieval params now
auto-expand too.

Closes #639

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented May 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

Copy link
Copy Markdown

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.

query_turns: applied filters not visible when follow-agent-mode opens Prompts tab

0 participants