[GH-ISSUE #5234] [Feature]: Add an option to customize the order of "External Proxy Remark" and "Inbound Remark" #3668

Closed
opened 2026-10-31 20:34:06 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @xingshuwen03-prog on GitHub (Jun 12, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5234

In version 3.3.1, the string concatenation order for generating subscription node names with "External Proxy" enabled was changed.

v3.3.0 format: [Inbound Remark]-[External Proxy Remark] (e.g., USA-Node-1)

v3.3.1 format: [External Proxy Remark]-[Inbound Remark] (e.g., 1-USA-Node)

This primarily comes down to user preference. Some users might prefer the v3.3.1 format, while others might prefer the v3.3.0 format, so it would be good to add an option for this.

Describe the solution you'd like

Please add a configuration option to allow control over whether "External Agent Notes" is used as a prefix or suffix.

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?

Subscription (share links / Clash / JSON), Multi-node (sub-nodes)

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @xingshuwen03-prog on GitHub (Jun 12, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5234 ### Is your feature request related to a problem? In version 3.3.1, the string concatenation order for generating subscription node names with "External Proxy" enabled was changed. v3.3.0 format: [Inbound Remark]-[External Proxy Remark] (e.g., USA-Node-1) v3.3.1 format: [External Proxy Remark]-[Inbound Remark] (e.g., 1-USA-Node) This primarily comes down to user preference. Some users might prefer the v3.3.1 format, while others might prefer the v3.3.0 format, so it would be good to add an option for this. ### Describe the solution you'd like Please add a configuration option to allow control over whether "External Agent Notes" is used as a prefix or suffix. ### 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? Subscription (share links / Clash / JSON), Multi-node (sub-nodes) ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [x] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
bsakaguchi 2026-10-31 20:34:06 +07:00
Author
Owner

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

The panel already has a mechanism that controls this — the Remark Model setting — and it includes the external proxy remark as one of the positional components. Whether the current UI makes that discoverable enough is a fair concern, and that is the actionable part of this request.

How the existing system works

In Settings → Subscription → Information tab → "Remark Model & Separation Character" (confirmed in frontend/src/pages/settings/SubscriptionGeneralTab.tsx), the multi-select lists three components:

Tag Meaning
i Inbound remark
e Client email
o Other — this is the external proxy remark

The backend (internal/sub/service.go, genRemark) and the frontend link generator (frontend/src/lib/xray/inbound-link.ts, genAllLinks) both read the stored remarkModel string identically: the first character is the separator and the remaining characters define the order of the components. With the current default "-ieo" (set in internal/web/service/setting.go), inbound remark (i) precedes the external proxy remark (o), which matches the v3.3.0 behaviour you describe.

To get [External Proxy Remark]-[Inbound Remark] instead, the stored remarkModel would need to be "-oi" (or "-oie" if email is included). The system fully supports that ordering today; the gap is on the UX side.

The actual UX gap

Two things make the existing capability hard to use for this purpose:

  1. The o component is labelled "Other" in the UI — it is not obvious that this maps to the external proxy remark. A label like "External Proxy" or "Other / Ext. Proxy" would make the connection clear.
  2. Ant Design's Select with mode="multiple" does not expose drag-to-reorder; changing the component order currently requires deselecting items and reselecting them in the preferred sequence, which is non-obvious.

A dedicated prefix/suffix toggle for the external proxy remark — or renaming o to something descriptive and adding a drag handle to the remark model selector — would address both points without needing a new data field.

Workaround until this is improved

If you need the external proxy remark as a prefix right now, you can set the remark model string directly via the API:

PATCH /panel/api/setting
Content-Type: application/json

{"remarkModel": "-oi"}

Or use the x-ui management menu → Panel Settings to confirm the saved value. The subscription output will immediately reflect the new order.


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

<!-- gh-comment-id:4694968462 --> @github-actions[bot] commented on GitHub (Jun 12, 2026): The panel already has a mechanism that controls this — the **Remark Model** setting — and it includes the external proxy remark as one of the positional components. Whether the current UI makes that discoverable enough is a fair concern, and that is the actionable part of this request. **How the existing system works** In Settings → Subscription → Information tab → "Remark Model & Separation Character" (confirmed in `frontend/src/pages/settings/SubscriptionGeneralTab.tsx`), the multi-select lists three components: | Tag | Meaning | |-----|---------| | `i` | Inbound remark | | `e` | Client email | | `o` | **Other** — this is the external proxy remark | The backend (`internal/sub/service.go`, `genRemark`) and the frontend link generator (`frontend/src/lib/xray/inbound-link.ts`, `genAllLinks`) both read the stored `remarkModel` string identically: the first character is the separator and the remaining characters define the order of the components. With the current default `"-ieo"` (set in `internal/web/service/setting.go`), inbound remark (`i`) precedes the external proxy remark (`o`), which matches the v3.3.0 behaviour you describe. To get `[External Proxy Remark]-[Inbound Remark]` instead, the stored `remarkModel` would need to be `"-oi"` (or `"-oie"` if email is included). The system fully supports that ordering today; the gap is on the UX side. **The actual UX gap** Two things make the existing capability hard to use for this purpose: 1. The `o` component is labelled "Other" in the UI — it is not obvious that this maps to the external proxy remark. A label like "External Proxy" or "Other / Ext. Proxy" would make the connection clear. 2. Ant Design's `Select` with `mode="multiple"` does not expose drag-to-reorder; changing the component order currently requires deselecting items and reselecting them in the preferred sequence, which is non-obvious. A dedicated prefix/suffix toggle for the external proxy remark — or renaming `o` to something descriptive and adding a drag handle to the remark model selector — would address both points without needing a new data field. **Workaround until this is improved** If you need the external proxy remark as a prefix right now, you can set the remark model string directly via the API: ``` PATCH /panel/api/setting Content-Type: application/json {"remarkModel": "-oi"} ``` Or use the `x-ui` management menu → Panel Settings to confirm the saved value. The subscription output will immediately reflect the new order. --- *This reply was generated automatically; a maintainer may follow up.*
Author
Owner

@xingshuwen03-prog commented on GitHub (Jun 12, 2026):

面板中已经存在一个控制此功能的机制——备注模型设置——它将外部代理备注作为位置组件之一。当前用户界面是否足够清晰地展示此功能是一个值得关注的问题,这也是本次请求中需要解决的关键所在。

现有系统的工作原理

在“设置”→“订阅”→“信息”选项卡→“备注模型和分隔符”(已确认frontend/src/pages/settings/SubscriptionGeneralTab.tsx)中,多选列表包含三个组成部分:

标签 意义
i 入站备注
e 客户电子邮件
o 其他——这是外部代理评论
后端(internal/sub/service.go,genRemark)和前端链接生成器(frontend/src/lib/xray/inbound-link.ts,genAllLinks)读取存储remarkModel字符串的方式完全相同:第一个字符是分隔符,其余字符定义组件的顺序。在当前默认值"-ieo"(在设置中internal/web/service/setting.go)下,入站备注(i)位于外部代理备注(o)之前,这与您描述的 v3.3.0 行为一致。

要实现这一点,需要[External Proxy Remark]-[Inbound Remark]存储信息(或者如果包含电子邮件地址)。系统目前完全支持这种订购方式;不足之处在于用户体验方面。remarkModel``"-oi"``"-oie"

实际用户体验差距

现有能力难以用于此目的的原因有两点:

  1. 该o组件在用户界面中被标记为“其他”,但这并不明显表明它与外部代理相关。如果使用“外部代理”或“其他/外部代理”之类的标签,就能更清晰地阐明其关联性。
  2. Ant Design 的Selectwith 功能mode="multiple"没有提供拖拽重新排序功能;目前更改组件顺序需要取消选择项目,然后按首选顺序重新选择它们,这并不明显。

为外部代理备注添加一个专用的前缀/后缀切换按钮(或者将其重命名o为具有描述性的名称,并在备注模型选择器中添加一个拖动手柄)即可解决这两个问题,而无需添加新的数据字段。

在问题解决之前,暂定此方案。

如果您现在需要将外部代理备注作为前缀,可以直接通过 API 设置备注模型字符串:

PATCH /panel/api/setting
Content-Type: application/json

{"remarkModel": "-oi"}

或者,您可以使用x-ui管理菜单 → 面板设置来确认已保存的值。订阅输出将立即反映新的订单状态。

此回复为自动生成,维护人员可能会跟进。

OK, it's resolved, thank you.

<!-- gh-comment-id:4695068542 --> @xingshuwen03-prog commented on GitHub (Jun 12, 2026): > 面板中已经存在一个控制此功能的机制——**备注模型**设置——它将外部代理备注作为位置组件之一。当前用户界面是否足够清晰地展示此功能是一个值得关注的问题,这也是本次请求中需要解决的关键所在。 > > **现有系统的工作原理** > > 在“设置”→“订阅”→“信息”选项卡→“备注模型和分隔符”(已确认`frontend/src/pages/settings/SubscriptionGeneralTab.tsx`)中,多选列表包含三个组成部分: > > 标签 意义 > `i` 入站备注 > `e` 客户电子邮件 > `o` **其他**——这是外部代理评论 > 后端(`internal/sub/service.go`,`genRemark`)和前端链接生成器(`frontend/src/lib/xray/inbound-link.ts`,`genAllLinks`)读取存储`remarkModel`字符串的方式完全相同:第一个字符是分隔符,其余字符定义组件的顺序。在当前默认值`"-ieo"`(在设置中`internal/web/service/setting.go`)下,入站备注(`i`)位于外部代理备注(`o`)之前,这与您描述的 v3.3.0 行为一致。 > > 要实现这一点,需要`[External Proxy Remark]-[Inbound Remark]`存储信息(或者如果包含电子邮件地址)。系统目前完全支持这种订购方式;不足之处在于用户体验方面。`remarkModel``"-oi"``"-oie"` > > **实际用户体验差距** > > 现有能力难以用于此目的的原因有两点: > > 1. 该`o`组件在用户界面中被标记为“其他”,但这并不明显表明它与外部代理相关。如果使用“外部代理”或“其他/外部代理”之类的标签,就能更清晰地阐明其关联性。 > 2. Ant Design 的`Select`with 功能`mode="multiple"`没有提供拖拽重新排序功能;目前更改组件顺序需要取消选择项目,然后按首选顺序重新选择它们,这并不明显。 > > 为外部代理备注添加一个专用的前缀/后缀切换按钮(或者将其重命名`o`为具有描述性的名称,并在备注模型选择器中添加一个拖动手柄)即可解决这两个问题,而无需添加新的数据字段。 > > **在问题解决之前,暂定此方案。** > > 如果您现在需要将外部代理备注作为前缀,可以直接通过 API 设置备注模型字符串: > > ``` > PATCH /panel/api/setting > Content-Type: application/json > > {"remarkModel": "-oi"} > ``` > > 或者,您可以使用`x-ui`管理菜单 → 面板设置来确认已保存的值。订阅输出将立即反映新的订单状态。 > > _此回复为自动生成,维护人员可能会跟进。_ OK, it's resolved, thank you.
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#3668
No description provided.