[GH-ISSUE #5324] [Question]: Customizing the node name in subscriptions / Setting up the display of '@NodeName' when importing inbounds #3731

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

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

What are you trying to do?

Problem Description

When using multi-node synchronization and enabling "All Inbounds" synchronization from a remote node, the panel automatically appends the node name to the inbound name using the @ symbol (resulting in "InboundName@NodeName").

In the subscription settings (/panel/settings#subscription), under "Note Model and Separator Symbol," you can only manage three variables: "Inbound," "Email," and "Other."

Because the "@NodeName" suffix is ​​hardcoded into the import logic, the flexible signature structure configuration breaks. Instead of a beautiful and neat name (for example, using the "|" separator), the client application receives ugly strings like "Amsterdam@AM1|Doppel."

Suggestion / How to fix

It would be great to add a separate tag (variable) Node to the "Note Model" constructor.

This would allow users to decide where and how to display the node name:

  • For example, set the template: Inbound | Node | Email | Other -> to get Amsterdam | AM1 | user1.
  • Or simply remove Node from the template if the node name is not required in the subscription name at all.

Screenshots

  1. Current subscription settings (only Inbound, Email, and Other available):
Image
  1. Client display (hardcoded @ symbol and node name):
    Image

What have you already tried?

No response

3x-ui version

3.3.1

How did you install 3x-ui?

install.sh script

Operating system

Debian13

Screenshots or config snippets

No response

Before submitting

  • I read the Wiki and searched existing issues.
  • This is a usage question, not a bug report.
  • This question is written in English.
Originally created by @Doppelgangers on GitHub (Jun 14, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5324 ### What are you trying to do? ### Problem Description When using multi-node synchronization and enabling "All Inbounds" synchronization from a remote node, the panel automatically appends the node name to the inbound name using the @ symbol (resulting in "InboundName@NodeName"). In the subscription settings (/panel/settings#subscription), under "Note Model and Separator Symbol," you can only manage three variables: "Inbound," "Email," and "Other." Because the "@NodeName" suffix is ​​hardcoded into the import logic, the flexible signature structure configuration breaks. Instead of a beautiful and neat name (for example, using the "|" separator), the client application receives ugly strings like "Amsterdam@AM1|Doppel." ### Suggestion / How to fix It would be great to add a separate tag (variable) **`Node`** to the "Note Model" constructor. This would allow users to decide where and how to display the node name: * For example, set the template: `Inbound | Node | Email | Other` -> to get `Amsterdam | AM1 | user1`. * Or simply remove `Node` from the template if the node name is not required in the subscription name at all. ### Screenshots 1. **Current subscription settings** (only Inbound, Email, and Other available): <img width="2504" height="544" alt="Image" src="https://github.com/user-attachments/assets/7e41ae1d-f8a5-4e28-828d-6cd6fb3c70dc" /> 2. **Client display** (hardcoded @ symbol and node name): <img width="845" height="1137" alt="Image" src="https://github.com/user-attachments/assets/fd9e4402-b473-459a-aae4-af3148c658d6" /> ### What have you already tried? _No response_ ### 3x-ui version 3.3.1 ### How did you install 3x-ui? install.sh script ### Operating system Debian13 ### Screenshots or config snippets _No response_ ### Before submitting - [x] I read the [Wiki](https://github.com/MHSanaei/3x-ui/wiki) and searched [existing issues](../issues?q=is%3Aissue). - [x] This is a usage question, not a bug report. - [x] This question is written in English.
Author
Owner

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

Two separate things are happening here, and it helps to address them independently.

1. The immediate problem: @NodeName suffix in v3.3.1

The forced @NodeName append was introduced in v3.3.1 as a workaround for duplicate-remark collisions in multi-node subscriptions (see #5035). It has already been removed on the main branch. genRemark() in internal/sub/service.go (lines 1514–1596) now only assembles the three template variables (i, e, o) with no node-name suffix, and TestGenRemarkOmitsNodeName in internal/sub/service_test.go (line 32) explicitly guards against the regression returning. v3.3.1 is still the latest release at the time of writing, so this fix has not shipped yet.

2. The feature request: Node as a configurable remark-model variable

This does not exist in the codebase. The remark model (remarkModel setting, default "-ieo") currently recognises exactly three single-character slots, confirmed in internal/sub/service.go:1517–1520:

Char Meaning
i Inbound remark
e Client e-mail
o External proxy remark

The frontend mirrors these in frontend/src/pages/settings/SubscriptionGeneralTab.tsx (REMARK_MODELS). There is no n (Node) slot, so there is currently no way to include the node name as a positioned, formatted component of the subscription remark.

Adding such a slot would be a new enhancement. The precedent for gating a remark component on a flag is the existing emailInRemark bool on SubService, populated from the subEmailInRemark setting (internal/web/entity/entity.go:79, internal/web/service/setting.go). A Node variable would follow the same pattern: a new n character in the model string, populated with nodesByID[*inbound.NodeID].Name when the inbound has a NodeID set and the node is found.

What you can do now:

  • To escape the v3.3.1 suffix behaviour before the next release, you can build from main, which has the suffix removed.
  • If you want to track or contribute the Node-variable enhancement specifically, a new focused feature request or PR would be appropriate, since the prior issues (#5231, #5235, #5257) addressed only the removal/toggle of the forced suffix, not the opt-in template variable.

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

<!-- gh-comment-id:4702270409 --> @github-actions[bot] commented on GitHub (Jun 14, 2026): Two separate things are happening here, and it helps to address them independently. **1. The immediate problem: `@NodeName` suffix in v3.3.1** The forced `@NodeName` append was introduced in v3.3.1 as a workaround for duplicate-remark collisions in multi-node subscriptions (see #5035). It has already been removed on the `main` branch. `genRemark()` in `internal/sub/service.go` (lines 1514–1596) now only assembles the three template variables (`i`, `e`, `o`) with no node-name suffix, and `TestGenRemarkOmitsNodeName` in `internal/sub/service_test.go` (line 32) explicitly guards against the regression returning. v3.3.1 is still the latest release at the time of writing, so this fix has not shipped yet. **2. The feature request: `Node` as a configurable remark-model variable** This does not exist in the codebase. The remark model (`remarkModel` setting, default `"-ieo"`) currently recognises exactly three single-character slots, confirmed in `internal/sub/service.go:1517–1520`: | Char | Meaning | |------|---------| | `i` | Inbound remark | | `e` | Client e-mail | | `o` | External proxy remark | The frontend mirrors these in `frontend/src/pages/settings/SubscriptionGeneralTab.tsx` (`REMARK_MODELS`). There is no `n` (Node) slot, so there is currently no way to include the node name as a positioned, formatted component of the subscription remark. Adding such a slot would be a new enhancement. The precedent for gating a remark component on a flag is the existing `emailInRemark` bool on `SubService`, populated from the `subEmailInRemark` setting (`internal/web/entity/entity.go:79`, `internal/web/service/setting.go`). A `Node` variable would follow the same pattern: a new `n` character in the model string, populated with `nodesByID[*inbound.NodeID].Name` when the inbound has a `NodeID` set and the node is found. **What you can do now:** - To escape the v3.3.1 suffix behaviour before the next release, you can build from `main`, which has the suffix removed. - If you want to track or contribute the `Node`-variable enhancement specifically, a new focused feature request or PR would be appropriate, since the prior issues (#5231, #5235, #5257) addressed only the removal/toggle of the forced suffix, not the opt-in template variable. *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#3731
No description provided.