mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6289] [Feature]: Request: Separate Stable and Pre-release Xray Core Channels #4267
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#4267
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?
Originally created by @FlamingYouth on GitHub (Aug 23, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6289
Is your feature request related to a problem?
Currently, newer versions of 3x-ui may raise the minimum supported Xray Core version and require users to use newer Pre-release versions.
For production servers, this is not always desirable.
Some users prefer to stay on an officially released stable Xray Core version until a newer stable release is available.
However, upgrading 3x-ui may force users onto a newer Pre-release Core even when the previous stable Core is still working correctly.
Describe the solution you'd like
Please separate Xray Core updates into two channels:
Stable
Only use official stable Xray Core releases.
Do not automatically switch to Pre-release versions.
Pre-release
Allow users who want the newest Xray features to opt into Pre-release versions.
For example:
Xray Core Update Channel:
● Stable
○ Pre-release
If a newer 3x-ui feature requires a Pre-release Xray Core, the panel could show a warning instead of forcing the upgrade:
This feature requires a newer Pre-release Xray Core.
Switch to the Pre-release channel to use it.
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
Frontend (UI / panel pages)
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Aug 23, 2026):
Valid feature request, but with one constraint that shapes it: a "Stable only" channel would today show an empty version list, because XTLS marks nearly every recent Xray-core release as a pre-release.
Upstream state right now (
gh release list --repo XTLS/Xray-core -L 15, checked 2026-08-23): the newest release not flagged pre-release isv26.3.27(2026-03-27). Everything after it —v26.4.13,v26.4.15,v26.4.17,v26.4.25,v26.5.3,v26.5.9,v26.6.1,v26.6.22,v26.6.27,v26.7.11,v26.7.28— is a pre-release.What the panel offers. The picker list is built in
GetXrayVersions(internal/web/service/server.go:776), which fetcheshttps://api.github.com/repos/XTLS/Xray-core/releasesand keeps only:That floor was raised in
bbfbd7eb("Bump minimum eligible Xray version", 2026-06-28, previously v26.4.25). So "stable-only" (prerelease == false) intersected with "≥ 26.6.27" is the empty set today — the radio you sketched would leave the Stable option with nothing to select.On "upgrading 3x-ui forces a newer core": correct about the outcome, but the panel never switches the core by itself. The picker is fully manual and confirmed (
frontend/src/pages/index/VersionModal.tsx:59→POST /panel/api/server/installXray/{version}, registered atinternal/web/controller/server.go:70). What replaces your core is the panel update:x-ui updaterunsinstall.sh, which movesbin/aside and restores only files the new release does not ship —— so the release's bundled
xray-linux-*always wins. That bundled version is pinned in.github/workflows/release.yml:127andDockerInit.sh:35, currentlyv26.7.28.Why pinning an older core isn't only a download choice. The panel is compiled against that same core tree (
go.mod:25,github.com/xtls/xray-core v1.260327.1-0.20260728075948-5ca6f4b7d4dc) and emits config that assumes recent core behaviour. Example frominternal/web/service/inbound.go:610:So a "stay on stable" toggle can hand a user a core that rejects the config the panel generates, which is the failure mode the minimum-version floor exists to prevent.
Workaround today: after each panel update, re-select the version you want in the Xray version picker (Panel → Xray updates). The list is capped at ≥
v26.6.27, so you can pin an older core than the bundled one, but not an upstream-"Latest" one.For the maintainer, two smaller pieces that stand on their own:
Release.Prereleaseis already decoded (internal/web/service/server.go:126) but never read anywhere — the picker could tag pre-releases visually without any channel machinery.devChannelEnable(internal/web/service/setting.go:132andGetDevChannelEnableat:952) toggles stable vs rolling dev for panel self-update. An Xray equivalent would need the floor atserver.go:830to become channel-aware, plus a decision on what "stable" means while upstream publishes almost nothing as stable.Related, not duplicates: #6249 (automatic updates for panel and Xray core) and #5948 (remote Xray version selection for sub-nodes).
Verdict: Feature request
This reply was generated automatically; a maintainer may follow up.
@FlamingYouth commented on GitHub (Aug 27, 2026):
Thanks for the detailed explanation. I understand why the current minimum-version floor exists, but I still think this is exactly why a Stable / Pre-release split would be useful.
The fact that:
currently results in an empty Stable list is not, in my view, a reason to avoid the feature. It highlights the problem.
At the moment, a user running the latest 3x-ui cannot choose to stay entirely on upstream stable Xray releases. They are effectively required to use a Core that upstream itself marks as Pre-release.
I have also tested the latest 3x-ui with older Xray Core versions, including v25.9.5. For my existing configuration, it starts and operates normally. Of course, I understand that some newer 3x-ui features may depend on newer Xray behavior and therefore may not work with an older Core.
I think that is acceptable.
The compatibility model could be feature-based instead of globally enforced by one minimum Core version.
For example:
This seems preferable to preventing the user from using the entire older Core just because some newer optional features are unsupported.
For many production users, the existing feature set is already sufficient. Newer XHTTP, FinalMask, REALITY, routing, or other enhancements are useful, but not every user needs every new feature immediately.
In that situation, I would rather choose:
than:
The important distinction is that "not all new features are compatible" does not necessarily mean "the older Core cannot be used at all."
So I still think the two channels would be valuable:
The Stable channel being empty under the current minimum-version rule is precisely why I think that minimum-version policy should be reconsidered.
Compatibility should ideally be enforced per feature where possible, rather than globally excluding every upstream stable Core release.
Advanced users can also be shown an explicit warning that using an older stable Core may disable newer features and that full compatibility is not guaranteed. That would preserve safety without removing the user's choice.