Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: web search tool details #4208

ClosedYash-Singh1(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromyash/web-search-tool-detailsopened View on GitHub

Showing 5 changed files with 49 additions and 53 deletions (loading 3).

x
0 of 5 viewed, 5 left
48 additions and 0 deletionsapps/web/src/components/chat/MessagesTimeline.test.tsxModified
View file
@@ -553,6 +553,54 @@
expect(markup).not.toContain("C:/Users/mike/dev-stuff/t3code/apps/web/src/session-logic.ts");
});
​
+ it("renders web search queries compactly and includes details in the expanded body", async () => {
+ const { buildToolCallExpandedBody } = await import("./workEntryDetails");
+ const workEntry = {
+ id: "web-search-work-1",
+ createdAt: "2026-03-17T19:12:28.000Z",
+ label: "Web search",
+ tone: "tool" as const,
+ toolTitle: "Web search",
+ itemType: "web_search" as const,
+ toolLifecycleStatus: "completed" as const,
+ toolData: {
+ type: "webSearch",
+ id: "web-search-1",
+ query: "OpenAI Codex web search payload preview",
+ action: {
+ type: "search",
+ queries: ["OpenAI Codex web search payload", "OpenAI Codex web search result payload"],
+ },
+ results: [{ title: "Codex docs", url: "https://example.com/codex" }],
+ },
+ };
+ const markup = renderToStaticMarkup(
+ <MessagesTimeline
+ {...buildProps()}
+ timelineEntries={[
+ {