mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6621] [MERGED] fix(tgbot): unstick the add-client wizard's inbound picker #6381
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#6381
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6621
Author: @romus204
Created: 9/22/2026
Status: ✅ Merged
Merged: 9/26/2026
Merged by: @MHSanaei
Base:
main← Head:main📝 Commits (3)
cfadb5efix(tgbot): unstick the add-client wizard's inbound picker4a4231fMerge remote-tracking branch 'origin/main' into pr-6621c11dfeetest(tgbot): pin which inbounds the add-client picker offers📊 Changes
2 files changed (+81 additions, -17 deletions)
View changed files
➕
internal/web/service/tgbot/tgbot_add_client_picker_test.go(+66 -0)📝
internal/web/service/tgbot/tgbot_inbound.go(+15 -17)📄 Description
Summary
getInboundsAddClientstill returned a valid-but-empty keyboard instead of an error, so the admin saw "choose inbound" with no buttons to tap.defaultWireguardClients,defaultAmneziaWGClients) and already get a subscription share link (wireguard://,vpn://), so they go through the same genericClientService.Createpath VLESS/Trojan already use — the exclusion was stale, left over from before those features existed. Mixed/HTTP/Tunnel stay excluded: no per-client model.addClientExcludedProtocols.Why
Tapping "➕ Новый клиент" always sent the "choose inbound" message,
even when the button list ended up empty after protocol filtering.
Type of change
Areas affected
Screenshots / recordings
Breaking changes
No
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.