fix: show web search queries in progress drafts

This commit is contained in:
Peter Steinberger
2026-05-08 01:37:11 +01:00
parent accf774591
commit 164ecfd7c8
6 changed files with 102 additions and 11 deletions

View File

@@ -332,6 +332,13 @@ describe("channel-streaming", () => {
args: { command: "sed -n '1,80p' extensions/discord/src/draft-stream.ts" },
}),
).toBe("🛠️ Bash: print lines 1-80 from extensions/discord/src/draft-stream.ts");
expect(
formatChannelProgressDraftLine({
event: "tool",
name: "web_search",
args: { search_query: [{ q: "Codex OAuth API key" }], response_length: "short" },
}),
).toBe('🔎 Web Search: for "Codex OAuth API key"');
expect(
formatChannelProgressDraftLine({
event: "item",