Skip to content

Add sub-account login and ZTE keepalive support#3

Open
Tulipyun wants to merge 3 commits into
sigming:masterfrom
Tulipyun:codex/subaccount-login-keepalive
Open

Add sub-account login and ZTE keepalive support#3
Tulipyun wants to merge 3 commits into
sigming:masterfrom
Tulipyun:codex/subaccount-login-keepalive

Conversation

@Tulipyun

@Tulipyun Tulipyun commented Jun 18, 2026

Copy link
Copy Markdown

Summary

This PR adds support for CMCC Cloud Computer sub-account users while keeping the existing SMS/password login flow intact.

Changes included:

  • Add sub-account password login through the SOHO home sub-account endpoint.
  • Persist the selected login mode and sub-account metadata in the existing config flow.
  • Support the ZTE firm-auth path returned for sub-account cloud PCs, where getFirmAuth provides VMC/CAG connection fields instead of a normal SCG auth code.
  • Implement a pure Go ZTE CAG connection path with TCP/TLS first and UDP/KCP fallback.
  • Start the ZTE desktop session, open the CAG proxy link, complete the raw SPICE main-channel handshake, and keep the session alive with SOHO heartbeat plus SPICE auto-replies.
  • Handle the raw SPICE server keepalive message observed on the official client path by replying with the matching client-side response.

Verification

  • go test ./...
  • Manual sub-account login test.
  • Manual cloud PC discovery and getFirmAuth test.
  • Manual ZTE desktop start and raw SPICE keepalive test for a 150-second session.

@Tulipyun Tulipyun changed the title Add sub-account login and keepalive fallback Add sub-account login support Jun 18, 2026
@Tulipyun Tulipyun force-pushed the codex/subaccount-login-keepalive branch from 2b54cd3 to e101b96 Compare June 18, 2026 12:42
@Tulipyun Tulipyun force-pushed the codex/subaccount-login-keepalive branch from e101b96 to 5297445 Compare June 18, 2026 13:17
@Tulipyun Tulipyun changed the title Add sub-account login support Add sub-account login and ZTE keepalive support Jun 18, 2026
@zaq7434

zaq7434 commented Jul 3, 2026

Copy link
Copy Markdown

2026-07-04 00:20:46] [ERROR] ZTE keepalive failed: connectStr missing -h host 测试发现会报这个错了。

@Tulipyun

Tulipyun commented Jul 3, 2026

Copy link
Copy Markdown
Author

你贴个完整的log啊,我测试正常的,你是用的子账号吗?如果不是子账号模式的话我就不知道了,我只有子账号模式的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants