Skip to content

Add hover tooltips and Switch Agent header to agent selector#7

Merged
inodb merged 2 commits intocBioPortal:v0.8.3-rc1-custom-v7from
ForisKuang:feature/agent-selector-tooltip-header
Mar 30, 2026
Merged

Add hover tooltips and Switch Agent header to agent selector#7
inodb merged 2 commits intocBioPortal:v0.8.3-rc1-custom-v7from
ForisKuang:feature/agent-selector-tooltip-header

Conversation

@ForisKuang
Copy link
Copy Markdown

@ForisKuang ForisKuang commented Mar 25, 2026

Summary

  • Add showSwitchAgent config flag to model specs for enabling the switch agent feature
  • Add "Switch Agent" pill button on the landing page to quickly switch between agents
  • Implement agent switching logic using getConvoSwitchLogic to handle conversation and preset transitions
  • Extract "Learn more" link from greeting HTML and render side by side with "Switch Agent" button
  • Add hover tooltips with agent descriptions and "Switch Agent" header to the agent selector in the nav bar
  • Add com_ui_switch_agent translation key

Test plan

  • Verify landing page shows "Learn more" (grey) and "Switch Agent" (themed) buttons side by side
  • Verify clicking "Switch Agent" switches to the other agent and updates the landing page greeting, icon, and description
  • Verify agent selector in header shows tooltip with agent description on hover
  • Verify showSwitchAgent: true in librechat.yaml enables the button for each spec
  • Verify switching agents correctly updates the conversation preset and endpoint

Screenshots

Screenshot 2026-03-25 at 1 39 53 PM Screenshot 2026-03-28 at 11 46 46 PM

Test Plan

  • Hover over each agent button and verify tooltip shows agent description
  • Verify "Switch Agent" label appears before the agent buttons
  • Click agent buttons and verify switching still works correctly
  • Verify tooltip falls back to label/name if no description is set

Foris Chen Kuang added 2 commits March 25, 2026 13:40
Show agent description on hover via TooltipAnchor so users understand
what each agent does. Add a "Switch Agent" label before the buttons
to make it clear they can switch between agents.
…h Learn more

- Add showSwitchAgent field to TModelSpec type and Zod schema
- Render "Switch Agent" pill button on landing page when multiple switchable agent specs exist
- Extract "Learn more" link from greeting HTML and render alongside Switch Agent in a horizontal row
- Learn more button retains grey styling, Switch Agent uses theme surface colors
@inodb inodb merged commit c42776e into cBioPortal:v0.8.3-rc1-custom-v7 Mar 30, 2026
3 checks passed
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.

2 participants