Skip to content

fix(cloro): count only cited ChatGPT sources and stop requesting its empty searchQueries - #1120

Merged
gkhngyk merged 1 commit into
mainfrom
fix/chatgpt-cited-sources
Oct 17, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
fix/chatgpt-cited-sources

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

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.sources also lists the pages it read without citing them, marked footnote: true (Cloro: ChatGPT sources). We stored every source as a citation:

  • in a real answer, 5 of 23 sources were cited;
  • the share of ChatGPT answers citing the brand's own site went from 4.2% to 10.9% on that day, while Copilot and Gemini held.

parseScraperResponse now stores only the sources without footnote: 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: true gets the mobile-web interface. Its stream says "Searched N websites" and carries no query text, so searchQueries came back empty on every answer, while the add-on still cost +2 credits a task.

  • buildRequestBody no longer sends include.searchQueries for chatgpt-web, which takes those tasks from 7 credits to 5. Copilot, Perplexity, Gemini and Grok keep it.
  • The health report's FANOUT_EXPECTED drops ChatGPT, so the fan-out section no longer flags it every day.
  • The Query Fan-out page lists ChatGPT among the engines that don't share their searches, and its copy says so.
  • probe-cloro-fanout.js still asks for searchQueries, 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.
  • Keeping the read-but-not-cited pages: they could go in a column of their own later. That needs a migration.
  • History: stored rows don't keep the footnote flag, so ChatGPT citations from Oct 9 until this ships stay as they are.

Related issue

Closes #1119

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. 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 no searchQueries; the other engines keep it.
    • health/report.test.js: a silent ChatGPT is no longer flagged.
  2. 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.
  3. With a saved ChatGPT response from Cloro, parseScraperResponse(response, 'chatgpt-web').citations holds only the footnote: false sources. A real Oct 16 response gives 5 of 23.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/): eslint is clean on the changed files
  • yarn typecheck passes (run from web/): no new errors
  • yarn format:check passes (run from web/): prettier is clean on the changed files
  • Changes are focused — one concern per PR

Also run: server npm test (1,298) and web yarn test (881) pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_0121amRjX7UFrgmGELAtkc7A

…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
@gkhngyk gkhngyk added bug Something isn't working citations Citations page, source classification, cited URLs tracking Nightly cycle, workers, scraper providers, Daily Pulse labels Oct 17, 2026
@gkhngyk
gkhngyk merged commit de317b5 into main Oct 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working citations Citations page, source classification, cited URLs tracking Nightly cycle, workers, scraper providers, Daily Pulse

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(cloro): count only cited ChatGPT sources and stop requesting its empty searchQueries

1 participant