fix(mtproto): route auth and show proxy health#412
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: xlabtg#411
Solution summaryImplemented and pushed the fix in PR 412: #412 What changed:
Verification passed:
Working tree is clean, and PR 412 is marked ready for review. This summary was automatically extracted from the AI working session output. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (252.9K + 16.0M cached) input tokens, 32.9K output tokens, $10.225120 cost 🤖 Models used:
📎 Log file uploaded as Repository (48475KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
This reverts commit 9ca7167.
|
it was meant that on our config page there is an MRTPOTO tab where users add MTPROTO PROXY, but we tried adding several servers and booting it with this setting, in addition, there is no information in the web interface for each added proxy about its availability and ping so that the user can view information on proxy servers in real time, we should check the whole logic of this mechanism, since now the agent in some locations does not work without a VPN, and the proxy should close this issue of the agent's uninterrupted operation in any location. |
|
🤖 AI Work Session Started Starting automated work session at 2026-04-24T14:13:40.858Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait for the session to finish, and provide your feedback. |
Solution summaryImplemented the follow-up for issue #411 and updated PR 412: What changed:
Verification:
This summary was automatically extracted from the AI working session output. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (366.9K + 14.8M cached) input tokens, 35.7K output tokens, $10.318207 cost 🤖 Models used:
📎 Log file uploaded as Repository (48106KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
|
that is, now we have this picture in the logs: [14:15:40] INFO: [Telegram] [MTProxy] Trying proxy 1/4 |
Summary
Fixes #411.
Reproduction
Before this change, setup/auth GramJS clients did not receive configured MTProto proxies, so primary setup auth and managed personal-agent auth could bypass proxy settings. The MRTPOTO config tab also only showed the current runtime connection state and did not report whether each configured proxy server was reachable or how long the proxy check took.
Verification
npm test -- --run src/telegram/__tests__/mtproto-proxy-health.test.ts src/webui/__tests__/mtproto-routes.test.ts src/webui/__tests__/setup-auth-proxy.test.ts src/webui/__tests__/setup-routes.test.ts src/webui/__tests__/agents-routes.test.ts src/telegram/__tests__/client-proxy.test.ts src/bot/__tests__/gramjs-bot-proxy.test.tsnpm run build -w packages/sdknpm run typechecknpm run lintnpm run format:checknpm run buildnpm test(3428 passed)cd web && npm cinpm run build:webnpm run audit:ciScreenshot