René's URL Explorer Experiment


Title: chatd: OpenAI web searches without a preceding reasoning item are never replayed · Issue #30528 · coder/coder · GitHub

Open Graph Title: chatd: OpenAI web searches without a preceding reasoning item are never replayed · Issue #30528 · coder/coder

X Title: chatd: OpenAI web searches without a preceding reasoning item are never replayed · Issue #30528 · coder/coder

Description: Hosted OpenAI web searches that have no reasoning item right before them are never sent back to the model in later requests, so the model loses what the search found. Details coder/fantasy only sends a web_search_call item reference righ...

Open Graph Description: Hosted OpenAI web searches that have no reasoning item right before them are never sent back to the model in later requests, so the model loses what the search found. Details coder/fantasy only sen...

X Description: Hosted OpenAI web searches that have no reasoning item right before them are never sent back to the model in later requests, so the model loses what the search found. Details coder/fantasy only sen...

Opengraph URL: https://github.com/coder/coder/issues/30528

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"chatd: OpenAI web searches without a preceding reasoning item are never replayed","articleBody":"Hosted OpenAI web searches that have no reasoning item right before them are never sent back to the model in later requests, so the model loses what the search found.\n\n## Details\n\ncoder/fantasy only sends a `web_search_call` item reference right after a reasoning item from a stored response. OpenAI also returns web searches with no reasoning before them. In review probes on coder/fantasy#63, gpt-4.1-mini did this for `search`, and gpt-5.4-mini and gpt-5.5 at effort `none` did it for `open_page`. Those searches are dropped from every later request. For `open_page` this loses the page contents (gpt-5.5: 11,485 input tokens with the reference, 4,574 without). For `search` it loses only the query.\n\nThis affects configs that send `store: true`. Hosted web search can only be turned on through an OpenAI options block, and a config with that block defaults `Store` to true (`coderd/x/chatd/chatopenai/options.go`). So web search configs that leave `store` unset are affected. Configs that set `store: false` are not.\n\nFrom the same probes (OpenAI does not document this): with `store: true`, a reference to the `ws_` item on its own is accepted. When a reasoning item came before the search, sending the reference without that reasoning item returns a 400 that names the `rs_` item.\n\n## Possible fix\n\n- For each search, record whether its source response was stored and which reasoning item, if any, came right before it, in both Generate and Stream.\n- Send a reference on its own only when no reasoning came before the search, or when that reasoning item is also in the input.\n- Apply the same rule in `validateResponsesItemReferences`.\n- Keep today's rule for searches saved without that record.\n\nThe previous prompt part cannot decide this on its own: chatd drops legacy reasoning with an empty summary, and Generate drops reasoning with neither a summary nor `encrypted_content`. Either leaves a reference on its own that returns a 400.\n\nFound by @mafredri in https://github.com/coder/fantasy/pull/63#discussion_r4172593187, during review of #30298.\n\n> Xum opened this issue on behalf of @ibetitsmike.\n","author":{"url":"https://github.com/ibetitsmike","@type":"Person","name":"ibetitsmike"},"datePublished":"2026-10-08T22:37:07Z","url":"https://github.com/coder/coder/issues/30528"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:52401e8c-5696-9bf0-c8eb-1a5c5494cc9d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE4E2:14ECB:2786367:3238D86:6B019912
html-safe-nonced00a0d8f181f78edfd1b4773c42a3e9a5f2005f15fb031f4365f33b4c2ff63a9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEUyOjE0RUNCOjI3ODYzNjc6MzIzOEQ4Njo2QjAxOTkxMiIsInZpc2l0b3JfaWQiOiI0NTE0OTUxOTQwNjkzNjYxOTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd1b8ade93aeaa29d2dbdb57f98889c95894cf065602e6644808a485ab05ed3c3
hovercard-subject-tagissue:5769894229
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/30528/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ace34035890cf84ebc7f1ab27c80fc4fd5705eecd7070109fc8ea7c93177a916/coder/coder/issues/30528
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ace34035890cf84ebc7f1ab27c80fc4fd5705eecd7070109fc8ea7c93177a916/coder/coder/issues/30528
og:image:altHosted OpenAI web searches that have no reasoning item right before them are never sent back to the model in later requests, so the model loses what the search found. Details coder/fantasy only sen...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameibetitsmike
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
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
disable-turbofalse
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
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/30528#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F30528
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%2Fissues%2F30528
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/30528
Reloadhttps://github.com/coder/coder/issues/30528
Reloadhttps://github.com/coder/coder/issues/30528
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)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
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/30528
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/30528
chatd: OpenAI web searches without a preceding reasoning item are never replayedhttps://github.com/coder/coder/issues/30528#top
https://github.com/ethanndickson
bughttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
on Oct 8, 2026https://github.com/coder/coder/issues/30528#issue-5769894229
coder/fantasy#63https://github.com/coder/fantasy/pull/63
@mafredrihttps://github.com/mafredri
coder/fantasy#63 (comment)https://github.com/coder/fantasy/pull/63#discussion_r4172593187
#30298https://github.com/coder/coder/pull/30298
@ibetitsmikehttps://github.com/ibetitsmike
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Oct 8, 2026https://github.com/coder/coder/issues/30528#issuecomment-6070443677
Linear Codehttps://linear.app
ENG-3457https://linear.app/codercom/issue/ENG-3457
ibetitsmikehttps://github.com/ibetitsmike
on Oct 13, 2026https://github.com/coder/coder/issues/30528#event-33129211769
fix: replay stateless OpenAI reasoning across chat turns (#30298)https://github.com/coder/coder/commit/b2c8798e0e07d87f5b5f043e22a08f9700af7ab5
#30298https://github.com/coder/coder/pull/30298
b2c8798https://github.com/coder/coder/commit/b2c8798e0e07d87f5b5f043e22a08f9700af7ab5
ThomasK33https://github.com/ThomasK33
ethanndicksonhttps://github.com/ethanndickson
on Oct 19, 2026https://github.com/coder/coder/issues/30528#event-33624575620
ethanndicksonhttps://github.com/ethanndickson
completedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 10, 2026https://github.com/coder/coder/issues/30528#event-35683112190
ThomasK33https://github.com/ThomasK33
bughttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22bug%22
on Nov 12, 2026https://github.com/coder/coder/issues/30528#event-35931095920
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/30528
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/30528
ethanndicksonhttps://github.com/ethanndickson
bughttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22bug%22
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.