[GH-ISSUE #6762] [Question]: user remarks are wrong? #4506

Open
opened 2026-10-31 20:40:07 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @TheAstro9aut on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6762

What are you trying to do?

[

Image

]
I don't understand why are user remarks on each inbound like only the user's name like the pic above. While it should be what the remark is when the subscription is added like the inbounds remark and users remark or inbounds name atleast. It's also the same when i want to copy configs from the panel it shows only user's name. While the remark should be inbounds like when the subscription is added or inbounds name and user's name

What have you already tried?

No response

3x-ui version

3.9.0

How did you install 3x-ui?

install.sh script

Operating system

No response

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 @TheAstro9aut on GitHub (Oct 7, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6762 ### What are you trying to do? [ <img width="1080" height="910" alt="Image" src="https://github.com/user-attachments/assets/f51d7b0a-b30a-44a6-a270-d8040e8fe4fc" /> ] I don't understand why are user remarks on each inbound like only the user's name like the pic above. While it should be what the remark is when the subscription is added like the inbounds remark and users remark or inbounds name atleast. It's also the same when i want to copy configs from the panel it shows only user's name. While the remark should be inbounds like when the subscription is added or inbounds name and user's name ### What have you already tried? _No response_ ### 3x-ui version 3.9.0 ### How did you install 3x-ui? install.sh script ### Operating system _No response_ ### 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 (Oct 7, 2026):

On v3.9.0 the link name already includes the inbound's remark by default. If you see only the user's name, then either the inbound has no Remark, or the panel's Remark Template setting was changed so it no longer contains {{INBOUND}}. Either one is a setting you can change; it is not a defect.

I can't open images, so I couldn't read your screenshot. The answer below comes from the source.

How the name after # is built

The link name (the text after #) comes from one template, the remarkTemplate setting. Its default is in internal/web/service/setting.go:41:

DefaultRemarkTemplate = "{{INBOUND}}-{{EMAIL}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D"

{{INBOUND}} is the inbound's Remark field and {{EMAIL}} is the client's email (the user name). When a token comes out empty, the - next to it is dropped too. So an inbound with an empty remark gives a link named only after the user. A test pins this behaviour, TestExpandRemarkVars_DropsHyphenBetweenEmptyTokens in internal/sub/remark_vars_test.go:119 and :127:

{name: "empty inbound", tmpl: "{{INBOUND}}-{{EMAIL}}", email: "john", want: "john"},
{name: "default template, empty inbound", tmpl: defaultRemarkTemplate, email: "john", want: "john"},

The QR code and copy-link views (internal/sub/remark_vars.go:664) keep only the name part of the template and remove the traffic and days tokens. With the default template they still show <inbound remark>-<email>.

What to check

  1. Open the inbound and look at its Remark field. If it's empty, give it a name such as Germany. Your links will then be named Germany-<user>.
  2. Go to Panel Settings → Subscription → Remark Template and make sure the template contains {{INBOUND}}. If it reads just {{EMAIL}}, change it back to the default:
    {{INBOUND}}-{{EMAIL}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D
    
    Other tokens are also available, for example {{HOST}}, {{PROTOCOL}} and {{TRANSPORT}}. They're listed at https://github.com/MHSanaei/3x-ui/blob/main/docs/content/docs/en/config/share-links.mdx#remark-template-variables

After saving, refresh the subscription in your client app.

If both look right (the inbound has a remark and the template contains {{INBOUND}}) and you still see only the user name, please reply with:

  1. the exact text of your Remark Template setting,
  2. the inbound's Remark,
  3. one copied link with the UUID/password masked.

With those three I can trace the exact code path.

Verdict: Not a bug (user configuration)

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

<!-- gh-comment-id:6034638783 --> @github-actions[bot] commented on GitHub (Oct 7, 2026): On v3.9.0 the link name already includes the inbound's remark by default. If you see only the user's name, then either the inbound has no **Remark**, or the panel's **Remark Template** setting was changed so it no longer contains `{{INBOUND}}`. Either one is a setting you can change; it is not a defect. I can't open images, so I couldn't read your screenshot. The answer below comes from the source. **How the name after `#` is built** The link name (the text after `#`) comes from one template, the `remarkTemplate` setting. Its default is in `internal/web/service/setting.go:41`: ```go DefaultRemarkTemplate = "{{INBOUND}}-{{EMAIL}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D" ``` `{{INBOUND}}` is the inbound's **Remark** field and `{{EMAIL}}` is the client's email (the user name). When a token comes out empty, the `-` next to it is dropped too. So an inbound with an empty remark gives a link named only after the user. A test pins this behaviour, `TestExpandRemarkVars_DropsHyphenBetweenEmptyTokens` in `internal/sub/remark_vars_test.go:119` and `:127`: ```go {name: "empty inbound", tmpl: "{{INBOUND}}-{{EMAIL}}", email: "john", want: "john"}, {name: "default template, empty inbound", tmpl: defaultRemarkTemplate, email: "john", want: "john"}, ``` The QR code and copy-link views (`internal/sub/remark_vars.go:664`) keep only the name part of the template and remove the traffic and days tokens. With the default template they still show `<inbound remark>-<email>`. **What to check** 1. Open the inbound and look at its **Remark** field. If it's empty, give it a name such as `Germany`. Your links will then be named `Germany-<user>`. 2. Go to **Panel Settings → Subscription → Remark Template** and make sure the template contains `{{INBOUND}}`. If it reads just `{{EMAIL}}`, change it back to the default: ```text {{INBOUND}}-{{EMAIL}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D ``` Other tokens are also available, for example `{{HOST}}`, `{{PROTOCOL}}` and `{{TRANSPORT}}`. They're listed at https://github.com/MHSanaei/3x-ui/blob/main/docs/content/docs/en/config/share-links.mdx#remark-template-variables After saving, refresh the subscription in your client app. If both look right (the inbound has a remark and the template contains `{{INBOUND}}`) and you still see only the user name, please reply with: 1. the exact text of your **Remark Template** setting, 2. the inbound's **Remark**, 3. one copied link with the UUID/password masked. With those three I can trace the exact code path. Verdict: Not a bug (user configuration) *This reply was generated automatically; a maintainer may follow up.* <!-- claude-issue:analyst -->
Author
Owner

@TheAstro9aut commented on GitHub (Oct 10, 2026):

Okay this is the information for the sub link Which applies to the sucks dummy: 👤️: {{EMAIL}} | 📊: {{TRAFFIC_LEFT}} | ⏳: {{DAYS_LEFT}}D
This is the config that is imported to the client i which i exported from there. Here everything is fine user stats are showed in the subscription link as a dummy socks and other configs have inbounds name: vless://-@example.top:2052?encryption=mlkem768x25519plus.xorpub.0rtt.vmaAVWpf_lRJheIeVbL4NOB2LhQ2YEZjxKSxMWOUFi_IOZb43Z0a1RGhgpAjmsiHCsfHdFJHhiXK5TPlVEggUNUL8eN4wG6tiK-KxN8IQKc7TvCAZQEQDfBRTSD8tE0HbeM2iQmn-Rqj-BufIy1fWRx-NCBzRW9w9phIIGaWrI4Y6ZWcfABugQ5HNo_C8JDOpY4InSLDPJ5DFg5GCS7-gE7hLEdhTK3adJw9FOxUlgGhNbO93yA-ii8Quue0iA3IbETO5RjZlm2w-B-ZGU7KARhcTOxZWCCeJFFNxlVFVAfjfiB-NWW07uHfdF8rDHDL-TOEYq_OIaEV9sPfTCXG_y9JysvXLUPk0xI3SyqD8mZcvMiCIm0Ejm14_ITMVBi4TMvFit9HzrEhXINGeegvmtw53eAeBFRz_MRXfkbRBoNEWXLCnJ6x9aMizNt_wcYP0TI9xBzfBqly_x8AgJubtrPLCZ7eJC8QFZDZdM4ZqBokcU9OAkcdlwvc3eyhlNKzpZcdCiGh6wbe1hiOkOBH9E7HJM9oVqQi2VFWWGvnMM86qVqZwG56pDBgRGYnlYpiRO4P5KSpXJs-bLKZlG7HlKpjrtCgMN5jEdCZAV0pyqMeVFJ75Vsw8u4yaCwEyVPN4EPuHgrG7OxwymhcjSuwBuB_FhFVuZtKwJN-aQWSPchfBFJfWVdsTyExcJm_8NIWph2npOvjGQraYB3B0fOrgg-aQA7x7aAtFivTFuM1hhCWfxpOFW_mKWrqMFzCDAkFxLId5LIV7fLCnZJw5Cn3bWU0gZIceQ2e3BYeYW9k0W5mtgMeWyErVYJVxxBAVkGa2WJA1Cu6bPF0Yq1UWKAzDOISKMjUZW3DSM3f0uRF3JoiFUY2XDCOABr25pFUMcC6vNDzPtNN9IysAQLTkDDcaxekyY_e5wm5gnEMvvC7iyLKjYUgQY5zTl3oNiivpIRjoF7xEg9r9BHsbGpJOQZDdfNj0dPTKpY7wItnHA8bAxiPam4zGAj1QEgUjWYf4hsdnZa-LBvOKWtUEUwkduQ-ZOFec7yohfijAm6eR136dM8fBex1l9UJO8dLKz4lg9h8p4zzWuGBXHkURfTHB3cZGO25syzwaDFJQMWhHHZIR3huPKq_hnOsC5l0qOVDy4Tjefz3WmWOFU2MgbbjKwFrSRwAWqajkyN9eH-EgZpjZPwgGllHQsRNHDgrg0NMx_0ZYQ0XNFEBh01yGXF4PJ7dBaGdsvuHrE6aUXCWGn3BwcabUvAoc06jVRqgyuP3hT7iiqhJIOirrDoQwPB0wK0tjHLmKkE5FTZWcC30MyJwNx-Lp7J8iRRmZ7J0WJbOCHUlQuBiQ227yJuLMTmhN9HdGBq_B2fMU0CYSDS8Ri5YA8gTWTduEqbIGhZ-KeVDEM8NERv9BOqRENzKJFeKoBJpPLCoC1QJI8vSinfFSlPMTGZ0s3OnsfPEC25daPr-WQPtougzdO2OujWDaD2Ryjs0BC9pcN5vysj3hll-a8lXZdHquUAjyL7aiqg4OUjvO1PJ0IFBKxXc7ah-8Q-f8UaMfsZ39ip1bAsVgbvPi2UjY&security=none&type=tcp#%F0%9F%91%A4%EF%B8%8F%3A%20abuqpe5mny
But when i copy that same config from the panel or subscription's web page it's like this:
vless://-@example.top:2052?security=&encryption=mlkem768x25519plus.xorpub.0rtt.vmaAVWpf_lRJheIeVbL4NOB2LhQ2YEZjxKSxMWOUFi_IOZb43Z0a1RGhgpAjmsiHCsfHdFJHhiXK5TPlVEggUNUL8eN4wG6tiK-KxN8IQKc7TvCAZQEQDfBRTSD8tE0HbeM2iQmn-Rqj-BufIy1fWRx-NCBzRW9w9phIIGaWrI4Y6ZWcfABugQ5HNo_C8JDOpY4InSLDPJ5DFg5GCS7-gE7hLEdhTK3adJw9FOxUlgGhNbO93yA-ii8Quue0iA3IbETO5RjZlm2w-B-ZGU7KARhcTOxZWCCeJFFNxlVFVAfjfiB-NWW07u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_B2fMU0CYSDS8Ri5YA8gTWTduEqbIGhZ-KeVDEM8NERv9BOqRENzKJFeKoBJpPLCoC1QJI8vSinfFSlPMTGZ0s3OnsfPEC25daPr-WQPtougzdO2OujWDaD2Ryjs0BC9pcN5vysj3hll-a8lXZdHquUAjyL7aiqg4OUjvO1PJ0IFBKxXc7ah-8Q-f8UaMfsZ39ip1bAsVgbvPi2UjY&headerType=&type=tcp#%F0%9F%87%A9%F0%9F%87%AA%20Germany
All inbounds in subscription's web page and panel are copied like this : 👤️: {{EMAIL}}
Only when imported using the sub itself it's fine

<!-- gh-comment-id:6095591757 --> @TheAstro9aut commented on GitHub (Oct 10, 2026): Okay this is the information for the sub link Which applies to the sucks dummy: 👤️: {{EMAIL}} | 📊: {{TRAFFIC_LEFT}} | ⏳: {{DAYS_LEFT}}D This is the config that is imported to the client i which i exported from there. Here everything is fine user stats are showed in the subscription link as a dummy socks and other configs have inbounds name: vless://-@example.top:2052?encryption=mlkem768x25519plus.xorpub.0rtt._vmaAVWpf_lRJheIeVbL4NOB2LhQ2YEZjxKSxMWOUFi_IOZb43Z0a1RGhgpAjmsiHCsfHdFJHhiXK5TPlVEggUNUL8eN4wG6tiK-KxN8IQKc7TvCAZQEQDfBRTSD8tE0HbeM2iQmn-Rqj-BufIy1fWRx-NCBzRW9w9phIIGaWrI4Y6ZWcfABugQ5HNo_C8JDOpY4InSLDPJ5DFg5GCS7-gE7hLEdhTK3adJw9FOxUlgGhNbO93yA-ii8Quue0iA3IbETO5RjZlm2w-B-ZGU7KARhcTOxZWCCeJFFNxlVFVAfjfiB-NWW07uHfdF8rDHDL-TOEYq_OIaEV9sPfTCXG_y9JysvXLUPk0xI3SyqD8mZcvMiCIm0Ejm14_ITMVBi4TMvFit9HzrEhXINGeegvmtw53eAeBFRz_MRXfkbRBoNEWXLCnJ6x9aMizNt_wcYP0TI9xBzfBqly_x8AgJubtrPLCZ7eJC8QFZDZdM4ZqBokcU9OAkcdlwvc3eyhlNKzpZcdCiGh6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&security=none&type=tcp#%F0%9F%91%A4%EF%B8%8F%3A%20abuqpe5mny But when i copy that same config from the panel or subscription's web page it's like this: vless://-@example.top:2052?security=&encryption=mlkem768x25519plus.xorpub.0rtt._vmaAVWpf_lRJheIeVbL4NOB2LhQ2YEZjxKSxMWOUFi_IOZb43Z0a1RGhgpAjmsiHCsfHdFJHhiXK5TPlVEggUNUL8eN4wG6tiK-KxN8IQKc7TvCAZQEQDfBRTSD8tE0HbeM2iQmn-Rqj-BufIy1fWRx-NCBzRW9w9phIIGaWrI4Y6ZWcfABugQ5HNo_C8JDOpY4InSLDPJ5DFg5GCS7-gE7hLEdhTK3adJw9FOxUlgGhNbO93yA-ii8Quue0iA3IbETO5RjZlm2w-B-ZGU7KARhcTOxZWCCeJFFNxlVFVAfjfiB-NWW07uHfdF8rDHDL-TOEYq_OIaEV9sPfTCXG_y9JysvXLUPk0xI3SyqD8mZcvMiCIm0Ejm14_ITMVBi4TMvFit9HzrEhXINGeegvmtw53eAeBFRz_MRXfkbRBoNEWXLCnJ6x9aMizNt_wcYP0TI9xBzfBqly_x8AgJubtrPLCZ7eJC8QFZDZdM4ZqBokcU9OAkcdlwvc3eyhlNKzpZcdCiGh6wbe1hiOkOBH9E7HJM9oVqQi2VFWWGvnMM86qVqZwG56pDBgRGYnlYpiRO4P5KSpXJs-bLKZlG7HlKpjrtCgMN5jEdCZAV0pyqMeVFJ75Vsw8u4yaCwEyVPN4EPuHgrG7OxwymhcjSuwBuB_FhFVuZtKwJN-aQWSPchfBFJfWVdsTyExcJm_8NIWph2npOvjGQraYB3B0fOrgg-aQA7x7aAtFivTFuM1hhCWfxpOFW_mKWrqMFzCDAkFxLId5LIV7fLCnZJw5Cn3bWU0gZIceQ2e3BYeYW9k0W5mtgMeWyErVYJVxxBAVkGa2WJA1Cu6bPF0Yq1UWKAzDOISKMjUZW3DSM3f0uRF3JoiFUY2XDCOABr25pFUMcC6vNDzPtNN9IysAQLTkDDcaxekyY_e5wm5gnEMvvC7iyLKjYUgQY5zTl3oNiivpIRjoF7xEg9r9BHsbGpJOQZDdfNj0dPTKpY7wItnHA8bAxiPam4zGAj1QEgUjWYf4hsdnZa-LBvOKWtUEUwkduQ_-ZOFec7yohfijAm6eR136dM8fBex1l9UJO8dLKz4lg9h8p4zzWuGBXHkURfTHB3cZGO25syzwaDFJQMWhHHZIR3huPKq_hnOsC5l0qOVDy4Tjefz3WmWOFU2MgbbjKwFrSRwAWqajkyN9eH-EgZpjZPwgGllHQsRNHDgrg0NMx_0ZYQ0XNFEBh01yGXF4PJ7dBaGdsvuHrE6aUXCWGn3BwcabUvAoc06jVRqgyuP3hT7iiqhJIOirrDoQwPB0wK0tjHLmKkE5FTZWcC30MyJwNx-Lp7J8iRRmZ7J0WJbOCHUlQuBiQ227yJuLMTmhN9HdGBq_B2fMU0CYSDS8Ri5YA8gTWTduEqbIGhZ-KeVDEM8NERv9BOqRENzKJFeKoBJpPLCoC1QJI8vSinfFSlPMTGZ0s3OnsfPEC25daPr-WQPtougzdO2OujWDaD2Ryjs0BC9pcN5vysj3hll-a8lXZdHquUAjyL7aiqg4OUjvO1PJ0IFBKxXc7ah-8Q-f8UaMfsZ39ip1bAsVgbvPi2UjY&headerType=&type=tcp#%F0%9F%87%A9%F0%9F%87%AA%20Germany All inbounds in subscription's web page and panel are copied like this : 👤️: {{EMAIL}} Only when imported using the sub itself it's fine
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#4506
No description provided.