Skip to content

feat: add reliable persistent Zhizi cloud analysis#27

Merged
wimi321 merged 2 commits into
mainfrom
feat/zhizi-persistent-cloud-engine
Jul 18, 2026
Merged

feat: add reliable persistent Zhizi cloud analysis#27
wimi321 merged 2 commits into
mainfrom
feat/zhizi-persistent-cloud-engine

Conversation

@wimi321

@wimi321 wimi321 commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • adopt the proven LizzieYZY Next Socket.IO/GTP connection model for Zhizi Cloud
  • keep one persistent remote KataGo session with reconnect, cancellation, bounded retry, and idle release
  • stop analysis by real visits and surface live visits-per-second instead of fixed waiting
  • require a real connection probe before switching from local KataGo to Zhizi Cloud
  • distinguish expired login, VIP entitlement, worker capacity, network, timeout, and protocol failures
  • keep local KataGo as the default and preserve the legacy zz-ikatago spawn fallback

User experience

  • login no longer silently switches analysis to remote
  • 'Detect and enable' only changes engine mode after a real remote candidate is returned
  • failed checks leave local analysis untouched
  • cold 28B model startup gets a proper 60-second initialization window
  • switching back to local, changing plans, logging out, or quitting cancels work and releases the remote session
  • queued and running scheduler work can be cancelled using the original run id
  • connection diagnostics show top move, visits, live speed, startup time, analysis time, and session reuse

Verification

  • pnpm check
  • pnpm check:teacher-quality
  • 216 automated tests passed
  • packaged Electron UI tested with an isolated user directory
  • local real KataGo analysis and automatic winrate generation passed
  • invalid/expired token UI flow passed and did not switch away from local mode
  • real Zhizi VIP shared-engine login and enable flow passed
  • real game position analysis returned candidates, winrate, score lead, and streaming speed
  • cancellation and scheduler telemetry passed in the packaged app
  • strict two-position Zhizi smoke passed with one persistent connection

Real Zhizi smoke evidence

  • engine: vip-share
  • connection count: 1
  • first position: about 1.0s, D16, 399 visits
  • second position: about 0.7s, R14, 1070 visits
  • no credentials or tokens are included in this PR

Notes

No credentials, tokens, build artifacts, or user-local design files are included.

@wimi321
wimi321 merged commit bc04675 into main Jul 18, 2026
5 checks passed
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.

1 participant