mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5356] Subscription remark model lacks Panel Name variable / 订阅备注模型缺少面板名称变量 #3754
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#3754
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 @dkgks on GitHub (Jun 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5356
Describe the bug / 问题描述
在订阅设置 > 信息 > 备注模型中,系统提供了备注模板和分隔符等配置选项,但没有将「面板名称」作为可用变量加入备注模型中。
当通过 API 管理外部面板节点后,这些节点在被订阅时会自动附上
@面板名称后缀(例如US-01@Tokyo-VPS),这个@分隔符和面板名称的附加行为是硬编码的,用户在备注模型设置中无法修改或移除。English:
In Subscription Settings > Info > Remark Model, the system provides remark templates and separator configuration options, but "Panel Name" is not available as a variable in the remark model.
When external panel nodes are managed via API, those nodes automatically get a
@PanelNamesuffix appended when served through subscription (e.g.US-01@Tokyo-VPS). The@separator and panel name suffix behavior is hardcoded — users cannot modify or remove it through the remark model settings.How to reproduce / 复现步骤
Tokyo)和面板 BUS-01US-01@Tokyo,而非US-01English:
Tokyo) and Panel BUS-01US-01@Tokyoinstead ofUS-01Expected behavior / 期望行为
在备注模型中增加「面板名称」作为可选变量,让用户能够:
@)English:
Add "Panel Name" as an optional variable in the remark model, allowing users to:
@)Actual behavior / 实际影响
备注@面板名称的固定格式English:
remark@PanelNameformat that cannot be changed@github-actions[bot] commented on GitHub (Jun 15, 2026):
The behavior you describe — a hardcoded
@NodeNamesuffix appended to subscription remarks for node-hosted inbounds — is a confirmed regression introduced in v3.3.1 (via the change that fixed #5035) and has already been reported and resolved upstream.What happened in v3.3.1. The
genRemarkfunction ininternal/sub/service.gowas extended with a block that appended@<NodeName>to the inbound remark for any inbound whoseNodeIDis set. This caused every node-hosted entry to display asRemark@NodeName(e.g.US-01@Tokyo) in client apps.Current state on
main. Commitb770287(fix(sub): stop appending the node name to subscription remarks) removed this block entirely. ThegenRemarkfunction (lines 1557–1640 ofinternal/sub/service.goonmain) now builds the subscription remark solely from theremarkModelslots — inbound remark (i), client email (e), and endpoint remark (o) — with no node-name component. A regression test,TestGenRemarkOmitsNodeNameininternal/sub/service_test.go:32, explicitly guards against the suffix returning.Timeline. Commit
b770287was merged on 2026-06-12 at 20:35 UTC, roughly 90 minutes after v3.3.1 was published at 18:49 UTC, so v3.3.1 still contains the regression and the fix will ship in the next release.On the enhancement request. The suffix was removed unconditionally rather than made configurable. There is no panel-name slot in the remark model and none has been added. The same enhancement (a toggle or remark-model variable for the node name) was requested in #5235 and #5257, both of which are closed. If you want to reopen that discussion, a new focused feature request is the appropriate channel.
Workaround until the next release. Either rebuild from
main, or include the node name directly in the inbound'sRemarkfield — the v3.3.1 code skips appending the suffix when the remark already contains the node name (\!strings.Contains(orders['i'], n.Name)).This issue is a duplicate of #5231, #5235, and #5347.
This reply was generated automatically; a maintainer may follow up.