feat(mobile): align upgrade prompts with desktop#4914
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: deb7e2477b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (!summary.data) { | ||
| throw new FollowAPIError("AI summary limit exceeded. Please try again later.", 402) |
There was a problem hiding this comment.
Distinguish empty summaries from quota failures
SummaryResponse is string | null, but this guard uses a falsy check, so a valid empty-string summary ("") is treated as a payment-limit failure and converted into a synthetic 402 error. In that case the UI will incorrectly show an upgrade-required state (and mark generation as error) instead of handling the response as an empty summary. Restrict this branch to null/undefined (for example summary.data == null) so only missing payloads trigger the upgrade path.
Useful? React with 👍 / 👎.
Summary
Testing
Screenshots