feat: web search tool details#4208
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved This PR adds UI display logic for web search tool details, extracting existing code to a new module and adding formatting for web search previews. Changes are limited to presentation layer with comprehensive test coverage and no security or infrastructure implications. You can customize Macroscope's approvability policy. Learn more. |
What Changed
Added web search tool details
Why
Gives user info on what the model is actually searching while it's searching
UI Changes
Checklist
Note
Low Risk
Chat UI and work-log derivation only; no auth, persistence, or API contract changes beyond displaying existing tool payloads.
Overview
Web search tool calls in the chat work log now show what the model searched instead of a generic label.
session-logicnow keepstoolDatafrom orchestration payloads forweb_searchentries (same pattern as MCP), so search items survive lifecycle collapse. Preview and expand rendering moved intoworkEntryDetails: the row shows the first query (or+N more), find-in-page style actions when relevant, and expanding shows pretty-printed JSON of the full payload (queries, results, URLs).Reviewed by Cursor Bugbot for commit 2711d4e. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add web search tool details to work timeline entries
workEntryPreviewandbuildToolCallExpandedBodyinto a new workEntryDetails.ts module, removing local implementations from MessagesTimeline.tsx.itemType: 'web_search'now show the first search query in compact preview, with a+N moresuffix when multiple queries exist.web_searchentries now includes a pretty-printed JSON block of the tool data alongside existing command/detail/changed-files sections.toDerivedWorkLogEntryin session-logic.ts now populatestoolDataforweb_searchitems in addition tomcp_tool_call.Macroscope summarized 2711d4e.