[PR #6142] [CLOSED] fix(frontend): preserve request cancellation and schema failures #6105

Closed
opened 2026-11-02 04:06:23 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6142
Author: @PathGao
Created: 7/29/2026
Status: ❌ Closed

Base: main ← Head: fix-frontend-http-boundary


📝 Commits (2)

  • e15dcc4 fix(frontend): preserve request cancellation and schema failures
  • 6194ed5 fix(frontend): limit schema failures to query boundaries

📊 Changes

6 files changed (+96 additions, -4 deletions)

View changed files

📝 frontend/src/api/http-init.ts (+18 -2)
📝 frontend/src/api/queries/useAllSettings.ts (+1 -1)
📝 frontend/src/hooks/useClients.ts (+1 -1)
📝 frontend/src/test/http-init.test.tsx (+31 -0)
➕ frontend/src/test/zodValidate.test.ts (+39 -0)
📝 frontend/src/utils/zodValidate.ts (+6 -0)

📄 Description

Summary

Requests that combine a timeout with a caller-provided cancellation signal now honor either cancellation source. Query parameters append correctly when callers already supply a query string or URL fragment.

Successful envelopes with malformed client, settings, or Xray payloads now fail at their schema boundary instead of entering TanStack Query caches as asserted values. The failure includes missing payloads; Query consumers receive their normal error state rather than corrupted data.

Validation

  • make verify
  • npm test -- src/test/http-init.test.tsx src/test/zodValidate.test.ts

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6142 **Author:** [@PathGao](https://github.com/PathGao) **Created:** 7/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-frontend-http-boundary` --- ### 📝 Commits (2) - [`e15dcc4`](https://github.com/MHSanaei/3x-ui/commit/e15dcc47d3ad8ca2371f4c3e4a500faf75382eda) fix(frontend): preserve request cancellation and schema failures - [`6194ed5`](https://github.com/MHSanaei/3x-ui/commit/6194ed526c4add3ab5695b31f4280cd70a2e3db1) fix(frontend): limit schema failures to query boundaries ### 📊 Changes **6 files changed** (+96 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/api/http-init.ts` (+18 -2) 📝 `frontend/src/api/queries/useAllSettings.ts` (+1 -1) 📝 `frontend/src/hooks/useClients.ts` (+1 -1) 📝 `frontend/src/test/http-init.test.tsx` (+31 -0) ➕ `frontend/src/test/zodValidate.test.ts` (+39 -0) 📝 `frontend/src/utils/zodValidate.ts` (+6 -0) </details> ### 📄 Description ## Summary Requests that combine a timeout with a caller-provided cancellation signal now honor either cancellation source. Query parameters append correctly when callers already supply a query string or URL fragment. Successful envelopes with malformed client, settings, or Xray payloads now fail at their schema boundary instead of entering TanStack Query caches as asserted values. The failure includes missing payloads; Query consumers receive their normal error state rather than corrupted data. ## Validation - `make verify` - `npm test -- src/test/http-init.test.tsx src/test/zodValidate.test.ts` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:06:23 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6105
No description provided.