Skip to content

Commit b4f91a5

Browse files
fix(codex): show query lists and find patterns in web search details
1 parent 4cd1284 commit b4f91a5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/server/src/provider/Layers/CodexAdapter.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,11 @@ function itemTitle(itemType: CanonicalItemType, item?: CodexLifecycleItem): stri
270270
function itemDetail(itemType: CanonicalItemType, item: CodexLifecycleItem): string | undefined {
271271
const itemRecord = item as Record<string, unknown>;
272272
const action = itemRecord.action as Record<string, unknown> | undefined;
273+
const actionQueries = Array.isArray(action?.queries) ? action.queries : [];
273274
const candidates = [
274-
...(itemType === "web_search" ? [itemRecord.query, action?.query, action?.url] : []),
275+
...(itemType === "web_search"
276+
? [itemRecord.query, action?.query, ...actionQueries, action?.pattern, action?.url]
277+
: []),
275278
"command" in item ? item.command : undefined,
276279
"title" in item ? item.title : undefined,
277280
"summary" in item ? item.summary : undefined,

0 commit comments

Comments
 (0)