Skip to content

With ordering off, ask before each order instead of filling a cart - #41

Merged
pungoyal merged 2 commits into
mainfrom
cart-keep
Oct 29, 2026
Merged

pungoyal merged 2 commits into
mainfrom
cart-keep

Conversation

@pungoyal

Copy link
Copy Markdown
Member

Found while testing cart-only mode live: the cart Pantry fills through Zepto's MCP (update_cart, keyed by device) is not the cart in the Zepto app. I added two items through the MCP and the account owner checked the app: they weren't there. So since the MCP move, /ordering off has filled a cart nobody can check out. The "replaces your app cart" warning was also wrong: Pantry never touches the app's cart.

Now /ordering off means "ask first":

  • Items gather in the basket as usual, with no countdown. Pantry shows the basket with Order now: "Ordering is off: tap Order now to order this."
  • Tapping Order now, or saying "abhi", runs the normal path: fill, read the bill, check everything, order.
  • A countdown that ends after ordering was turned off asks instead of ordering.
  • Turning ordering back on no longer empties the basket.
  • /settings shows "off, I ask first"; the setup message and the intent prompt are updated to match.
  • The guide, FAQ and landing page are updated. The new bot line is quoted on the settings page and checked against the code.

Tested:

  • Unit tests rewritten for the new behaviour. They were mutation-checked: dropping the ask-first branch, or the expired-countdown case, each fails them.
  • Live, on the owner's Zepto account with a scratch household: with ordering off, both hold and due gave "asking first". The basket was kept, the MCP cart stayed empty, and nothing was ordered. I didn't tap Order now, since that would place a real order.

🤖 Generated with Claude Code

pungoyal and others added 2 commits October 29, 2026 06:26
The cart Pantry fills through Zepto's MCP is its own, not the one in the
Zepto app (checked live: items added through the MCP never showed in the
app). So "cart only, check out in the app" left orders nowhere. Now, with
ordering off, the basket waits with an Order now button and no countdown;
tapping it (or saying "abhi") checks the bill and orders as usual. A
countdown that ends after ordering was turned off asks too.

The guide no longer says Pantry touches the app's cart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its message said the basket would be ordered; now it's replaced by the
ask-first one straight away. The DEVICE note had the cart as the app's;
it isn't.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pungoyal
pungoyal marked this pull request as ready for review October 29, 2026 06:28
@pungoyal
pungoyal merged commit a925207 into main Oct 29, 2026
1 check passed
@pungoyal
pungoyal deleted the cart-keep branch October 29, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant