Repository navigation
fix(shopping): store the products ChatGPT attaches to entities as inline product cards - #1193
Merged
Merged
Conversation
…ine product cards
Since 2026-10-16 Cloro returns the listing ChatGPT attaches to a product it
names as entities[n].product, and inlineProducts has come back empty since.
The parser never read entities, so these products were dropped.
- parseScraperResponse adds each entity listing to inline_products, in the
{ product } shape inline products already use.
- persistShoppingCards normalizes inline products into
prompt_result_shopping_cards after the carousel cards. They take the
positions after the carousel's last, so the two never collide, and
raw.surface = 'inline' tells them apart.
Inline products were stored only raw on prompt_results until now, so they
reach the Shopping page, the MCP tools and the API for the first time.
Refs #1183
Claude-Session: https://claude.ai/code/session_0121amRjX7UFrgmGELAtkc7A
8 of 12 tasks
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 19, 2026
main now has ansvisor#1176 (squash a98c35c, identical to this branch's 27f2ad2) and ansvisor#1193. The conflicts are the files ansvisor#1177 extends after ansvisor#1176: this branch's side kept; schema.sql rebuilt. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 19, 2026
…raffic-untracked-queries main now has ansvisor#1176 (squash, identical to the stack's first commit) and ansvisor#1193; merged through feature/traffic-google-pages, which carries it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 19, 2026
…ure/traffic-bot-ingest main now has ansvisor#1176 (squash, identical to the stack's first commit) and ansvisor#1193; merged through feature/traffic-untracked-queries, which carries it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 19, 2026
…ffic-bot-logs main now has ansvisor#1176 (squash, identical to the stack's first commit) and ansvisor#1193; merged through feature/traffic-bot-ingest, which carries it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 19, 2026
…ic-bot-connect main now has ansvisor#1176 (squash, identical to the stack's first commit) and ansvisor#1193; merged through feature/traffic-bot-logs, which carries it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 19, 2026
…affic-bot-report main now has ansvisor#1176 (squash, identical to the stack's first commit) and ansvisor#1193; merged through feature/traffic-bot-connect, which carries it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 19, 2026
…ffic-broken-links main now has ansvisor#1176 (squash, identical to the stack's first commit) and ansvisor#1193; merged through feature/traffic-bot-report, which carries it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 19, 2026
…raffic-alerts main now has ansvisor#1176 (squash, identical to the stack's first commit) and ansvisor#1193; merged through feature/traffic-broken-links, which carries it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 19, 2026
…-digest main now has ansvisor#1176 (squash, identical to the stack's first commit) and ansvisor#1193; merged through feature/traffic-alerts, which carries it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
Since 2026-10-16, no ChatGPT Shopping answer has carried inline products. Cloro now returns the listing ChatGPT attaches to a product it names as
entities[n].product(Cloro changelog, entities schema), and the parser never readentities. This PR stores those products.parseScraperResponseadds each entity listing toinline_products, in the{ product }shape inline products already use.persistShoppingCardsnow normalizes inline products intoprompt_result_shopping_cardsthrough the newnormalizeInlineProducts.(prompt_result_id, position).raw.surface = 'inline'tells them apart.prompt_results, and nothing read them. With this PR they reach the Shopping page, theshopping-cardsandproduct-visibilityMCP tools and/v1/shopping-cardsfor the first time.Probe (one Cloro task with
include.shoppingandinclude.rawResponse):shoppingCardsandinlineProductscame back empty, and 2 of the 6 product entities carried a listing.The carousel part of #1183 is ChatGPT's side and stays open.
Related issue
Refs #1183
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
After deploy, on a brand with Shopping on: new
chatgpt-shoppingrows inprompt_result_shopping_cardswithraw->>'surface' = 'inline'after the next tracking run.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdnpm run lint,npm run format:checkandnpm run testpass (run fromserver/; noweb/changes)🤖 Generated with Claude Code
https://claude.ai/code/session_0121amRjX7UFrgmGELAtkc7A