Skip to content

Keep play now and stale bookmarks visible on the smallest terminals - #7

Merged
BAKocska merged 3 commits into
mainfrom
fix/panel-less-status
Sep 28, 2026
Merged

BAKocska merged 3 commits into
mainfrom
fix/panel-less-status

Conversation

@BAKocska

Copy link
Copy Markdown
Owner

Summary

Fixes two defects found by driving the published v0.8.0 binary in real terminals at small sizes; the in-process tests had missed both.

  • Play now hidden without a panel. At 20x8 and 40x12 the announcement of the move just played held the status line for the whole bot search, so esc play now and the time/depth only appeared after some other key (esc itself still worked). While play now is offered, the key and the compact progress now lead the line and the announcement follows. Layouts with a panel are unchanged.
  • Stale bookmark toggled blind. When another window had saved first, a refused m at a panel-less size said only "changed elsewhere", and the next m toggled a stored state the player had never seen. The refusal now says whether the entry is bookmarked (marked elsewhere / unmarked elsewhere) at every size, and a press is not taken while the terminal is too small to show it.
  • Manual: notes attached to a changed record, or in a newer or damaged file, are not shown at all; the manual had called them read-only.

Why the tests missed it

TestPlayNowAndTheSearchShowAtEverySize pressed a key right after the commit, which clears the announcement; the compiled scenarios ran at 120x40, where the panel shows the search. The stale-bookmark tests checked panel layouts only.

Verification

  • New TestPlayNowLeadsTheMovesAnnouncementWithoutAPanel, TestReplayStaleBookmarkIsToggledOnlyOnceShown and compiled-binary TestPlayNowIsOfferedOnTheSmallestTerminal (20x8, required on native Windows) each fail on v0.8.0 and pass here.
  • Local: gofmt, vet (also GOOS=windows), 1,377 test/subtest passes, 42 e2e passes with zero e2e skips (the opt-in bot experiments and helper-process entry points skip as usual); race on app and study; both play-now e2e scenarios passed five repetitions.
  • Exploratory real-terminal pass on v0.8.0 (evidence retained): replay analysis found no defects across leave/cancel/seek races, sizes, large boards and write checks; notes passed conflict, refusal, hostile-text, size-limit and resize cases; play now passed leave/resume, resign/rematch, link mode, tiers and CPU-idle checks.

With no panel, the announcement of the move just played held the status line for the whole bot search, so esc play now and the search's progress only appeared after some other key. While play now is offered, the key and the compact progress now lead the line and the announcement follows. The earlier test pressed a key before looking, which cleared the announcement; the new tests commit and look without one, in process and against the compiled binary at 20x8.
A bookmark press refused because another window had saved first adopted the stored state, but at sizes with no panel the refusal only said the notes had changed, so the next press toggled a state the player had not seen. The refusal now states whether the entry is bookmarked at every size, and a press is not taken while the terminal is too small to show it. The manual no longer calls notes of a changed record or unreadable file read-only: they are not shown.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T15:29:47.671725Z ea5d468 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@BAKocska
BAKocska merged commit b059fba into main Sep 28, 2026
16 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