[GH-ISSUE #4641] [Bug]: Version 3.2.0: Clash Verge subscription groups disappear after refreshing again. Only version 2.9.4 works correctly with x-ui #3195

Closed
opened 2026-10-31 20:30:43 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @LORD07Sson on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4641

Describe the bug

I added my subscription to Clash Verge, and when I click "Update Profile" it immediately disappears and becomes invisible, as if there is no profile name at all. The only workaround is switching to Global Mode, but Rule Mode does not work

How to reproduce the problem

  1. Install x-ui version 2.9.4
  2. Copy the subscription to your Unbound and convert it from sub format to Clash format
  3. Import it into Clash the profile appears correctly. Go back to the main page and carefully check the "Proxies" section
  4. Update x-ui to version 3.2.0
  5. Open the profile in Clash and click the refresh/update icon. Immediately return to the main page the profile disappears and becomes invisible

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.2.0

Xray-core version

26.5.3

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04

Which parts of the panel are affected?

Subscription (share links / Clash / JSON)

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

No — direct access

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @LORD07Sson on GitHub (May 29, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4641 ### Describe the bug I added my subscription to Clash Verge, and when I click "Update Profile" it immediately disappears and becomes invisible, as if there is no profile name at all. The only workaround is switching to Global Mode, but Rule Mode does not work ### How to reproduce the problem 1. Install x-ui version 2.9.4 2. Copy the subscription to your Unbound and convert it from sub format to Clash format 3. Import it into Clash the profile appears correctly. Go back to the main page and carefully check the "Proxies" section 4. Update x-ui to version 3.2.0 5. Open the profile in Clash and click the refresh/update icon. Immediately return to the main page the profile disappears and becomes invisible ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.2.0 ### Xray-core version 26.5.3 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04 ### Which parts of the panel are affected? Subscription (share links / Clash / JSON) ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? No — direct access ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:30:43 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MHSanaei commented on GitHub (Jun 1, 2026):

Fixed in commit d29a17d3.

Root cause: the Clash generator could emit proxies with an empty or duplicate name. genRemark returns an empty string for an inbound with no remark (or when the remark model depends on the email, which the Clash path drops), and that empty string was used as the proxy name.

Verified against mihomo -t (the engine Clash Verge Rev uses):

  • 2+ empty/duplicate names → mihomo rejects the entire config (proxy is the duplicate name), so the profile disappears/becomes invisible on refresh.
  • 1 empty name → the proxy is dropped from the PROXY group, which collapses to [DIRECT] → Rule mode routes everything direct ("Rule Mode does not work") while Global still works via the auto-built GLOBAL group.

Fix: ensureUniqueProxyNames now guarantees every proxy has a non-empty, unique name before the config is assembled (empty names fall back to type-server-port; collisions get a numeric suffix). Confirmed the previously-rejected config now passes mihomo -t. Added a regression test.

This will be in the next release.

<!-- gh-comment-id:4594350614 --> @MHSanaei commented on GitHub (Jun 1, 2026): Fixed in commit d29a17d3. **Root cause:** the Clash generator could emit proxies with an empty or duplicate `name`. `genRemark` returns an empty string for an inbound with no remark (or when the remark model depends on the email, which the Clash path drops), and that empty string was used as the proxy name. Verified against `mihomo -t` (the engine Clash Verge Rev uses): - **2+ empty/duplicate names** → mihomo rejects the entire config (`proxy is the duplicate name`), so the profile disappears/becomes invisible on refresh. - **1 empty name** → the proxy is dropped from the `PROXY` group, which collapses to `[DIRECT]` → Rule mode routes everything direct ("Rule Mode does not work") while Global still works via the auto-built `GLOBAL` group. **Fix:** `ensureUniqueProxyNames` now guarantees every proxy has a non-empty, unique name before the config is assembled (empty names fall back to `type-server-port`; collisions get a numeric suffix). Confirmed the previously-rejected config now passes `mihomo -t`. Added a regression test. This will be in the next release.
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#3195
No description provided.