Skip to content

Enable pro mode to allow all options#6

Open
Menkib64 wants to merge 2 commits intoLeelaChessZero:masterfrom
Menkib64:enable-pro-mode
Open

Enable pro mode to allow all options#6
Menkib64 wants to merge 2 commits intoLeelaChessZero:masterfrom
Menkib64:enable-pro-mode

Conversation

@Menkib64
Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings April 26, 2026 21:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR appears to introduce a new “pro” client variant by bumping the enforced client/server version to 36 and changing how engine binaries are named on disk.

Changes:

  • Bump required client version from 35 → 36 in both server config and client worker.
  • Change engine binary naming to include a -pro- infix (e.g., <engine>-pro-<sha8>).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
Config/config.json Updates the server-enforced client_version to 36.
Client/worker.py Updates the client-reported CLIENT_VERSION to 36 to match the server requirement.
Client/utils.py Changes the engine binary filename format to include -pro-.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Client/utils.py
Comment on lines 153 to 157
def engine_binary_name(engine, commit_sha, net_path, private):
name = '%s-%s' % (engine, commit_sha.upper()[:8])
name = '%s-pro-%s' % (engine, commit_sha.upper()[:8])
if net_path and not private:
name += '-%s' % (net_path[-8:])
return name
Copy link

Copilot AI Apr 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

engine_binary_name() now unconditionally inserts -pro- into the engine binary filename. This changes the on-disk naming scheme for all engines, so existing cached binaries (built/downloaded under the previous <engine>-<sha> naming) will no longer be detected by check_for_engine_binary(), forcing rebuilds/re-downloads and potentially leaving duplicate/orphaned engine binaries. If the intent is to enable a new optional “pro mode”, consider making the -pro- suffix conditional (e.g., behind an explicit flag) and/or add backward-compatible lookup to reuse the old filename when present.

Copilot uses AI. Check for mistakes.
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