mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6143] [MERGED] fix(frontend): preserve cancellation and reject invalid query data #6106
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6143
Author: @PathGao
Created: 7/29/2026
Status: ✅ Merged
Merged: 7/29/2026
Merged by: @MHSanaei
Base:
main← Head:fix-frontend-http-boundary📝 Commits (3)
e15dcc4fix(frontend): preserve request cancellation and schema failures6194ed5fix(frontend): limit schema failures to query boundariesc0d639dfix(frontend): keep invalid settings recoverable📊 Changes
6 files changed (+183 additions, -3 deletions)
View changed files
📝
frontend/src/api/http-init.ts(+24 -2)📝
frontend/src/hooks/useClients.ts(+1 -1)📝
frontend/src/test/http-init.test.tsx(+83 -0)➕
frontend/src/test/use-all-settings.test.tsx(+28 -0)➕
frontend/src/test/zodValidate.test.ts(+41 -0)📝
frontend/src/utils/zodValidate.ts(+6 -0)📄 Description
Summary
A request that specifies both a timeout and an
AbortSignalnow cancels when either fires, including browsers withoutAbortSignal.any. Existing query strings and fragments no longer cause appended parameters to form malformed URLs.Malformed paged-client payloads are rejected before entering the TanStack Query cache. Settings remain tolerant because the backend accepts values outside the frontend schema; operators can still open and repair those settings. Malformed Xray config is logged but remains available in the raw JSON editor for the same recovery path.
Validation
make verify🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.