René's URL Explorer Experiment


Title: fix: fix OpenAI reasoning + web_search replay failure by ibetitsmike · Pull Request #23402 · coder/coder · GitHub

Open Graph Title: fix: fix OpenAI reasoning + web_search replay failure by ibetitsmike · Pull Request #23402 · coder/coder

X Title: fix: fix OpenAI reasoning + web_search replay failure by ibetitsmike · Pull Request #23402 · coder/coder

Description: Fixes the follow-up turn failure when an OpenAI reasoning model produces both reasoning output and a provider-executed web_search_call in the same response. Root cause: The fantasy adapter skipped reasoning items entirely during replay. When store=true, web_search items were replayed via item_reference but the reasoning item that preceded them was dropped. OpenAI rejects this with: "reasoning was provided without its required following item." Fix: Updated the pinned fantasy fork to emit item_reference for reasoning items when store=true, keeping them paired with subsequent provider-executed tool calls. Upstream PR: coder/fantasy#7 Changes coderd/chatd/chattest/openai.go: Extended fake OpenAI server to stream reasoning + web_search + text events coderd/chatd/integration_test.go: Added TestOpenAIReasoningWithWebSearchRoundTrip and TestOpenAIReasoningWithWebSearchRoundTripStoreFalse go.mod/go.sum: Updated fantasy pin to include the replay fix

Open Graph Description: Fixes the follow-up turn failure when an OpenAI reasoning model produces both reasoning output and a provider-executed web_search_call in the same response. Root cause: The fantasy adapter skipped ...

X Description: Fixes the follow-up turn failure when an OpenAI reasoning model produces both reasoning output and a provider-executed web_search_call in the same response. Root cause: The fantasy adapter skipped ...

Opengraph URL: https://github.com/coder/coder/pull/23402

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:91e66d31-fcf4-8681-ff09-5f3bf36a0681
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBBDA:842EC:1431A3D:1AF91C6:6B012F63
html-safe-noncecfe06ae6599aa15126d8a9eafd435940c3525d75552b15d8fc1768d71a01b49e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkRBOjg0MkVDOjE0MzFBM0Q6MUFGOTFDNjo2QjAxMkY2MyIsInZpc2l0b3JfaWQiOiIzODQzMTYwODM3MzE3NTM3NjM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacabb8a8d1da53f02d439ee9b3ba48de36d1e23fc1b80ae0622eff116dceacecfb
hovercard-subject-tagpull_request:3428639149
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/coder/pull/23402/files
twitter:imagehttps://avatars.githubusercontent.com/u/203725896?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/203725896?s=400&v=4
og:image:altFixes the follow-up turn failure when an OpenAI reasoning model produces both reasoning output and a provider-executed web_search_call in the same response. Root cause: The fantasy adapter skipped ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/coder/coder/pull/23402/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F23402%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F23402%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/23402/files
Reloadhttps://github.com/coder/coder/pull/23402/files
Reloadhttps://github.com/coder/coder/pull/23402/files
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests468 (468)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
ibetitsmikehttps://github.com/ibetitsmike
mainhttps://github.com/coder/coder/tree/main
mike/fix-openai-reasoning-websearch-replayhttps://github.com/coder/coder/tree/mike/fix-openai-reasoning-websearch-replay
Conversation 2 https://github.com/coder/coder/pull/23402
Commits 4 https://github.com/coder/coder/pull/23402/commits
Checks 39 https://github.com/coder/coder/pull/23402/checks
Files changed https://github.com/coder/coder/pull/23402/files
Please reload this pagehttps://github.com/coder/coder/pull/23402/files
fix: fix OpenAI reasoning + web_search replay failure https://github.com/coder/coder/pull/23402/files#top
Show all changes 4 commits https://github.com/coder/coder/pull/23402/files
aff907c test(coderd/chatd): add OpenAI reasoning web search replay coverage ibetitsmike Mar 20, 2026 https://github.com/coder/coder/pull/23402/commits/aff907c8eb9477ff6d390fa94f6b71871543c6bc
da9d6b2 chore: update fantasy pin to include reasoning replay fix ibetitsmike Mar 20, 2026 https://github.com/coder/coder/pull/23402/commits/da9d6b220928234e11704916da6f989403e0c399
2d41af4 fix(coderd/chatd): trim reasoning summary in tests ibetitsmike Mar 21, 2026 https://github.com/coder/coder/pull/23402/commits/2d41af4f739a530c2edeefa05bb2f2d20439f110
b980426 chore: revert unrelated golden testdata changes ibetitsmike Mar 21, 2026 https://github.com/coder/coder/pull/23402/commits/b9804265549d9c7ef04aa7cac72b1eafe8f61122
Clear filters https://github.com/coder/coder/pull/23402/files
Please reload this pagehttps://github.com/coder/coder/pull/23402/files
Please reload this pagehttps://github.com/coder/coder/pull/23402/files
openai.go https://github.com/coder/coder/pull/23402/files#diff-50a81a9f4463fb49c95197977d68eceb6cce82b416eec99657c41456bfe7a295
integration_test.go https://github.com/coder/coder/pull/23402/files#diff-1442a39adb37e57a3571916e9eadd9098ffee32b95544852f4e18b8db88726a0
go.mod https://github.com/coder/coder/pull/23402/files#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6
go.sum https://github.com/coder/coder/pull/23402/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63
Please reload this pagehttps://github.com/coder/coder/pull/23402/files
Please reload this pagehttps://github.com/coder/coder/pull/23402/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.