Repository navigation
fix(cloro): count only cited ChatGPT sources and stop requesting its empty searchQueries - #1120
Merged
Merged
Conversation
…empty searchQueries Since 2026-10-09 ChatGPT's sources also list the pages it read without citing them, marked footnote: true. They were stored as citations, which put ChatGPT's citation numbers at about 2.5x what its answers cite. Only the cited sources are stored now, for every engine that sets the flag. Since 2026-09-30 ChatGPT's default interface carries no query text, so include.searchQueries came back empty on every answer while still costing the +2 credit add-on. ChatGPT tasks no longer ask for it, the health report no longer expects ChatGPT fan-out, and the Query Fan-out page lists ChatGPT among the engines that don't share their searches. Closes #1119 Claude-Session: https://claude.ai/code/session_0121amRjX7UFrgmGELAtkc7A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two ChatGPT changes on Cloro's side, both confirmed by Cloro's support team, made our ChatGPT numbers wrong (#1119).
Citations: only the sources an answer cites
Since 2026-10-09 ChatGPT's
result.sourcesalso lists the pages it read without citing them, markedfootnote: true(Cloro: ChatGPT sources). We stored every source as a citation:parseScraperResponsenow stores only the sources withoutfootnote: true. One helper,toCitations, replaces the four copies of the mapping; only ChatGPT sets the flag, but it is honoured for every engine.citation_count, the Citations page and the rollups follow for every new answer.Fan-out: ChatGPT no longer shares its searches
Since 2026-09-30 every ChatGPT request without
legacy: truegets the mobile-web interface. Its stream says "Searched N websites" and carries no query text, sosearchQueriescame back empty on every answer, while the add-on still cost +2 credits a task.buildRequestBodyno longer sendsinclude.searchQueriesforchatgpt-web, which takes those tasks from 7 credits to 5. Copilot, Perplexity, Gemini and Grok keep it.FANOUT_EXPECTEDdrops ChatGPT, so the fan-out section no longer flags it every day.probe-cloro-fanout.jsstill asks forsearchQueries, since probing fan-out is its job.Not in this PR
legacy: true: it brings the queries back, but it is best-effort, since OpenAI is moving everyone to mobile-web. It would also switch the interface we measure, and change the answers and their sources again.footnoteflag, so ChatGPT citations from Oct 9 until this ships stay as they are.Related issue
Closes #1119
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
cd server && npm test.cloro-scraper.test.js: footnote sources are not stored (ChatGPT and ChatGPT Shopping), and unflagged ones are kept. ChatGPT's request has nosearchQueries; the other engines keep it.health/report.test.js: a silent ChatGPT is no longer flagged.cd web && yarn test._fanout-engines.test.tsx: ChatGPT reads "not shared", and a window with its older searches keeps its chip.fanout.test.ts: no "last shared" lookup for ChatGPT.parseScraperResponse(response, 'chatgpt-web').citationsholds only thefootnote: falsesources. A real Oct 16 response gives 5 of 23.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): eslint is clean on the changed filesyarn typecheckpasses (run fromweb/): no new errorsyarn format:checkpasses (run fromweb/): prettier is clean on the changed filesAlso run: server
npm test(1,298) and webyarn test(881) pass.🤖 Generated with Claude Code
https://claude.ai/code/session_0121amRjX7UFrgmGELAtkc7A