fix(codex): show web search query and url in tool call details #2093
MergedGuilhermeVieiraDev(GitHub profile, opens in a new tab)merged 9 commits into
main fromrefs/pull/2093/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
- apps/server/src/provider/Layers/CodexAdapter.ts line 253OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -250,3 +250,4 @@250250 }251251252252 function itemDetail(item: CodexLifecycleItem): string | undefined {253+ const itemType = toCanonicalItemType(item.type);
- apps/server/src/provider/Layers/CodexAdapter.ts line 285Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -267,12 +267,16 @@267267 }268268 }269269270-function itemDetail(item: CodexLifecycleItem): string | undefined {270+function itemDetail(itemType: CanonicalItemType, item: CodexLifecycleItem): string | undefined {271+ const itemRecord = item as Record<string, unknown>;272+ const action = itemRecord.action as Record<string, unknown> | undefined;271273 const candidates = [274+ ...(itemType === "web_search" ? [itemRecord.query, action?.query, action?.url] : []),272275 "command" in item ? item.command : undefined,273276 "title" in item ? item.title : undefined,274277 "summary" in item ? item.summary : undefined,275278 "text" in item ? item.text : undefined,276279 "path" in item ? item.path : undefined,277280 "prompt" in item ? item.prompt : undefined,278281 ];282+
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XS
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge merged this33f1cb4
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
00381ed4-0a94-42c6-9233-0a3b756f84c6You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.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.
❤️ Share