Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(codex): show web search query and url in tool call details #2093

MergedGuilhermeVieiraDev(GitHub profile, opens in a new tab)merged 9 commits intomain fromrefs/pull/2093/headmerged by juliusmarminge View on GitHub

What Changed

Codex webSearch tool calls now surface the actual query or opened URL in the work log detail instead of falling back to the generic Web search label with no useful context.

The adapter now checks item.query, then item.action.query, then item.action.url when building the detail string for web_search items.

Closes #1909.

Why

Right now Codex web search calls are not transparent enough. The work log just shows Web search, so there is no way to tell what the agent actually searched for or which URL it opened.

I kept the extra candidates isolated to web_search so this does not change detail precedence for other tool types that might also carry query or url fields.

UI Changes

Before:

image

After:

image

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Low Risk Display-only adapter mapping scoped to web_search items; other item types keep the same detail precedence.

Overview Codex web search work-log entries now show a meaningful detail string (search query, query list, pattern, or opened URL) instead of only the generic Web search title.

itemDetail in CodexAdapter.ts now takes itemType and, for web_search items only, prefers item.query, action.query, action.queries, action.pattern, and action.url before the existing command/title/summary fields. Item lifecycle and plan-completion mapping pass itemType through unchanged for other tool types.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit b4f91a5231f455e9e31ead447cb70c497d8d4697. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Show web search query and URL in tool call details for Codex

Updates itemDetail in CodexAdapter.ts to extract query, queries, pattern, and url fields from web search items and their action objects. These fields are prepended as candidate detail sources when itemType === "web_search", so runtime events for started/updated/completed items now surface the search query or URL in the detail field. Non-web-search behavior is unchanged.

Macroscope summarized b4f91a5.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro

      Run ID: 00381ed4-0a94-42c6-9233-0a3b756f84c6

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      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.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved

      This change adds display-only information (query and URL) to web search tool call details. It's a self-contained UI enhancement with no impact on business logic or data processing.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot).

      Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.

      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c08f90f3dedc840e3666341fbc089176f3abb467. Configure [here](https://www.cursor.com/dashboard/bugbot).
    5. juliusmarminge merged this33f1cb4

    6. juliusmarminge closed this

Sign in to join this conversation.