A new move left on the board when the session stops stays new, as the result
and the card say (restores the original expectation of
a_session_needs_no_question_to_go_back_and_counts_refresh_after_it).
Automatically save opponent preparations and start the opening-error engine when the report is ready, while preserving manual Stop and saved evaluations.
Remove the book comparison from opponent preparation: its UI, background work, algorithm and development hook are gone. Legacy saved data remains readable and is preserved for a possible future revert.
Align game counts, error counts and percentages in the preparation summary and refresh the architecture and team documentation.
The period and the depth captions are chosen together: the depth gives
way first at every width. The list's context menu reads the game's link
(once per menu) and names the site as the game screen does; the header's
subtitle leaves the web address to the globe, whose tooltip says what
opens.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The game screen has a globe after the result and an item in ☰ when the
game's Link or Site is a web address: a Lichess game opens at the move
shown, from the side at the bottom of the board; a Chess.com game (its
Link tag) at its page. The game list's context menu opens it too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The period and the depth fit at 640 px with their middle captions; the
header counts the games of the colour shown; the empty-period note names
the colour; the preparations list says «за 2 года · 8 партий» and
«последние 100».
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One game of «2026.??.??» no longer moves a period past the exactly dated
games; a date after today counts as none (in periods and in «Last N»).
Every colour change goes through set_color; a name with two ids in the
database takes both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A saved preparation is the player's by his names, not the database's
name ids (they shift when a game is deleted or the file is replaced):
opened from the list, the names are found again. The period counts are
of the games a report can take (set-up games left out first). A partly
known date is in a period when any day it can mean is; a date after
today is not the newest. Reopening a hidden report notices a deleted
preparation; a colour change is saved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The period caption shortens in a narrow row; «Last N» with both colours
shows «N + N»; the menu says from which date it counts; undated games
left out are named in the summary; no games in a period offer all games.
Without any dates a period by months takes all. Crisp icons (★, 🗐);
saved is a quiet mark. The list cuts long texts, names the colour in
words, opens on double-click, renames with Cancel, explains a missing
database, and tells while it opens one. CP_PREP_LIST for screenshots.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The report takes all the player's games, those of the last 1/2/5 years
before his newest game, or his last 50/100/200 of each colour; every
choice shows how many games it takes. Undated games count only with all.
«💾 Save» keeps a preparation with its errors in the program's data;
«📑 Preparations» in the library opens, renames and deletes them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The «checking your engine» toast only while an engine is really being checked.
- The probe starts the engine by the path of the settings or PATH (a snap or a
wrapper looks at its name); the verdict stays the real file's.
- A Stockfish 19 that does not finish the check in time: its own text, kept in
memory until the next request, never on the disk.
- Quitting waits for probes 2 s at most; an engine hung in its handshake dies with
the probe's thread (uci: EngineConfig::kill_with_parent, PR_SET_PDEATHSIG).
- touch_database: a link to a database on the shelf is that database.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The probe turns down an engine not called «Stockfish 19» right after `uci`, without
a search; a search has a 10 s guard, the probe 30 s; probes stop and their engines
quit (or are killed) when the program quits. Play engines (Rodent, Maia) are never
candidates.
- «Did not start» is its own outcome, said once and tried again next time; verdicts
are kept for the real file with the reference's key; the engine's name is checked
again when a job starts (a wrapper may run another program).
- The wait for a probe belongs to its game or preparation; the game analysis and the
opening errors wait apart; «analyse anew» keeps its `full`.
- The offer says why: another engine (settings / system), a Stockfish 19 that
calculates otherwise, one that did not start; the size line is back.
- Dropped files: missing ones told, known ChessBase parts only, duplicates by the real
file, each folder listed once; drops never replace a database being chosen again,
a cancelled «Choose again» ends it; «Added to the shelf» over a game; a framed
highlight with a card; long names shortened.
- decisions.md: where dropping works (not in a Wayland session: winit 0.30).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- review_engine: ChessPenguin's Stockfish 19, else a Stockfish 19 of the user's
(settings, PATH) whose probe (game_review::probe: id name and three searches of the
analysis's fixed mode at 100k nodes) matches the reference of ours; probed in the
background, the verdict kept by path, size and time. Other engines: the offer names
them («В настройках указан …»).
- Dropped files and folders open as «Add database» does (.pgn/.cbh/.cbv/.zip/.7z, the
.cbh of any ChessBase part); others get a toast; «Release to open» while dragging.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
platform::size_text takes the units from the translations ({n} GB …) and
the decimal comma where the language writes one; every size the web version
shows goes through it. chessbase.mjs takes CP_LANG.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A .cbh chosen alone brings a window: its folder (Chrome, Edge:
showDirectoryPicker opening beside the file, the folder remembered; others:
webkitdirectory) or all its files; the files are grouped into databases by
name (chess_import::group_chosen), the reader opens a ChessBase one with
open_chessbase_owned. The user's files stay the browser's File objects: the
worker reads them, the page never holds a database's bytes; a kept copy
takes the whole database. Over 2 GB of the files read: refused with the way
to the desktop program. A reader out of memory says so in the user's words.
Paths like /opened/... are no longer shown (platform::files::shown).
chess-core: detect_letter_substitution decodes the text a piece at a time;
it held the whole text as chars (four times its size): a 1 GB cp1251 PGN
could not be read in a browser (capacity overflow) and cost gigabytes on a
computer. Now 1.95 GB opens in Firefox and Chromium.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page's reader: a Web Worker with a second instance of the program reads
a database (PGN, CBV, ZIP, 7Z) and gives back its text and index; the page
puts it together without reading it again (chess_core::PgnIndex,
PgnDatabase::into_index / from_index, serde behind a feature). A 13 MB CBV:
the longest frame 17 ms in Firefox, 67 ms in Chromium (1000 ms before).
platform::open_database is the same on both sides: away from the screen,
done when read. The shelf's cards count the games the same way (one file
at a time); the counts are kept through platform::fs.
Chrome, Edge (File System Access): a chosen file's handle is kept in the
browser's storage; at the next visit the file is read again by itself when
the browser allows it, else the card offers «Allow reading» (the browser's
own question). Files of different visits get folders of their own.
Checks: t.choose(files, open) for both browsers (in Chromium the handles of
the site's private file system stand for the dialog's); app.mjs checks the
draft, the question on leaving and the remembered file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EngineLocation: an engine starts from its program on a computer, from the
address of its Web Worker's script in a browser; analysis, the review job,
the judge and the settings take it instead of a path.
platform::page: a game on the screen is an entry of the browser's history,
so Back is «← Library» (with the same questions); unsaved changes or a
running review make the browser ask before the page is left. The draft of an
unsaved game is written every 5 s while it has changes and offered at the
next start (Open / Delete); a saved or left game takes it away.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>