[GH-ISSUE #5431] [Bug]: Email field missing #3798

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

Originally created by @qin9125 on GitHub (Jun 18, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5431

Describe the bug

In the latest source-compiled installation package, the email field in the subscription chain is missing, causing the clash subscription nodes converted by sub store to be unrecognizable.

How to reproduce the problem

  • {"sni":"xxx","client-fingerprint":"chrome","alpn":["h2","http/1.1"],"network":"tcp","type":"trojan","password":"xxx","server":"xxx","port":35005,"name":"🇺🇸 USA-bw-tcp-tls"}

  • {"sni":"xxx","client-fingerprint":"chrome","alpn":["h2","http/1.1"],"network":"tcp","type":"trojan","password":"xxx","server":"xxx","port":35005,"name":"🇺🇸 USA"}

"name":"🇺🇸 USA-bw-tcp-tls"
"name":"🇺🇸 USA"
-bw-tcp-tls field missing

Image Image

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.3.1

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

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 @qin9125 on GitHub (Jun 18, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5431 ### Describe the bug In the latest source-compiled installation package, the email field in the subscription chain is missing, causing the clash subscription nodes converted by sub store to be unrecognizable. ### How to reproduce the problem - {"sni":"xxx","client-fingerprint":"chrome","alpn":["h2","http/1.1"],"network":"tcp","type":"trojan","password":"xxx","server":"xxx","port":35005,"name":"🇺🇸 USA-bw-tcp-tls"} - {"sni":"xxx","client-fingerprint":"chrome","alpn":["h2","http/1.1"],"network":"tcp","type":"trojan","password":"xxx","server":"xxx","port":35005,"name":"🇺🇸 USA"} "name":"🇺🇸 USA-bw-tcp-tls" "name":"🇺🇸 USA" -bw-tcp-tls field missing <img width="344" height="482" alt="Image" src="https://github.com/user-attachments/assets/f506f8a8-9401-4dd7-9fa8-95fab9f0b5c4" /> <img width="429" height="526" alt="Image" src="https://github.com/user-attachments/assets/334fcf18-f6fe-4e9f-9ec5-b9779beb3694" /> ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.3.1 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04 ### Which parts of the panel are affected? _No response_ ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### 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:35:02 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Jun 18, 2026):

The missing suffix is your client's email field. The remark template system (introduced to replace the old per-field remark checkboxes) controls what appears in subscription node names, and the current default template does not include the {{EMAIL}} token.

What the code does

The default remark template, confirmed in internal/web/service/setting.go:56, is:

{{INBOUND}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D

The template engine (in internal/sub/remark_vars.go) splits on | into segments. A segment whose only value is ∞ (unlimited traffic or no expiry) is dropped entirely. For a client with no traffic cap and no expiry:

  • {{INBOUND}} — your inbound remark, e.g. 🇺🇸 USA — kept
  • 📊{{TRAFFIC_LEFT}} — ∞ — dropped
  • ⏳{{DAYS_LEFT}}D — ∞ — dropped

Result in the subscription link fragment: 🇺🇸 USA. Sub Store reads that fragment as name, which matches what you see.

How to fix it

Add {{EMAIL}} (or {{USERNAME}}, which is an alias) to your remark template in the panel:

Settings → Subscription → Remark Template

For example:

{{INBOUND}}-{{EMAIL}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D

This will produce 🇺🇸 USA-bw-tcp-tls as the node name. The available tokens are shown in the {{ }} picker next to the input field.

Note for maintainers

The inline comment in internal/sub/service.go:1574 states: "The configurable remark model was removed in favour of the template, whose default already includes the email." The actual default template does not include {{EMAIL}}, which is inconsistent with that comment and likely the source of the user's expectation.


This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4742891112 --> @github-actions[bot] commented on GitHub (Jun 18, 2026): The missing suffix is your client's email field. The remark template system (introduced to replace the old per-field remark checkboxes) controls what appears in subscription node names, and the current default template does not include the `{{EMAIL}}` token. **What the code does** The default remark template, confirmed in `internal/web/service/setting.go:56`, is: ``` {{INBOUND}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D ``` The template engine (in `internal/sub/remark_vars.go`) splits on `|` into segments. A segment whose only value is `∞` (unlimited traffic or no expiry) is dropped entirely. For a client with no traffic cap and no expiry: - `{{INBOUND}}` — your inbound remark, e.g. `🇺🇸 USA` — kept - `📊{{TRAFFIC_LEFT}}` — `∞` — dropped - `⏳{{DAYS_LEFT}}D` — `∞` — dropped Result in the subscription link fragment: `🇺🇸 USA`. Sub Store reads that fragment as `name`, which matches what you see. **How to fix it** Add `{{EMAIL}}` (or `{{USERNAME}}`, which is an alias) to your remark template in the panel: **Settings → Subscription → Remark Template** For example: ``` {{INBOUND}}-{{EMAIL}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D ``` This will produce `🇺🇸 USA-bw-tcp-tls` as the node name. The available tokens are shown in the `{{ }}` picker next to the input field. **Note for maintainers** The inline comment in `internal/sub/service.go:1574` states: *"The configurable remark model was removed in favour of the template, whose default already includes the email."* The actual default template does not include `{{EMAIL}}`, which is inconsistent with that comment and likely the source of the user's expectation. --- *This reply was generated automatically; a maintainer may follow up.*
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#3798
No description provided.