Skip to content

Separate inquiry rejections from delivery failures and block duplicate submits - #243

Open
sidneyswift wants to merge 1 commit into
mainfrom
codex/inquiry-p0-20261025
Open

sidneyswift wants to merge 1 commit into
mainfrom
codex/inquiry-p0-20261025

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

The inquiry hook classified all rejected HTTP responses as delivery failures and relied on React state alone to prevent concurrent submissions. Invalid input and blocked requests were indistinguishable from service outages, and a second submit could run before the button rerendered.

Separate inquiry_rejected from delivery failures, add allowlisted error codes and HTTP status, display fixed recovery guidance, and guard in-flight requests synchronously. Give the server's upstream timeout time to return. Preserve validation, origin protection and the strict saved-receipt requirement for success.

Validation: 74 focused tests pass, including failing-before-fix regression coverage for classification and concurrent submissions. Scoped ESLint, TypeScript, production build, GitHub CI and Vercel preview deployment pass. Invalid preview requests return distinct validation and blocked responses.

Event consumers must account for the new distinction from release onward; historical event data is unchanged. This PR is not deployed to production until merged and released.

@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
marketing Ready Ready Preview Oct 26, 2026 12:53am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 26, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eadec13e-bc1a-4644-83d7-ac7f17144ef1
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch was successfully deployed

1 active deployment
Preview — 7b3a3ea3 Deployed Oct 26, 2026 by vercel[bot]
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