Repository navigation
docs: the appliance README says what tty1 runs, and that the dialog menu is the fallback - #1692
Conversation
…enu is the fallback `os/v3/puppy/README.md` described the console as the dialog menu alone - zero mentions of `1bit-console-tui`, which has been what actually runs on tty1 since cycle 19 and is the only appliance file the last several media changed. A reader of the image's entry-point page got the chain backwards: the menu row read as "the appliance's console menu", when the wrapper execs the TUI first and execs the menu on any exit, zero or not. This adds the row the page was missing and re-labels the menu's as the fallback: * `embed/usr/local/bin/1bit-console` is the chain - TUI first (built from `console-tui/` by `build-static.sh`, embedded as `CONSOLE_TUI_BIN`), dialog menu on any exit - and points at `console-tui/README.md` for the TUI's own page; * the menu row keeps every detail it had (the seven-line status block, the nine items, `--status`/`--run N`/`--selftest`, the two measured traps), now introduced as what tty1 gets when the TUI cannot draw. Two claims in the first draft were wrong and are corrected here rather than shipped: the TUI has `--status`/`--snapshot`/`--version` and **not** `--selftest` (that is the menu's), and the sentence about cycle 31 now quotes the cycle's own words - "the console TUI and the payload directory, and nothing else". Docs only: no code, no image, no gate file. `tools/copyright.py --check` rc 0.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY at f14a8da.
Every claim verified by grep, including the one you caught in your own first draft:
grep -c 1bit-console-tui in os/v3/puppy/README.md at main 0 <- the page really never names the TUI
embed/usr/local/bin/1bit-console:59 if [ -x /usr/local/bin/1bit-console-tui ]; then
:60 /usr/local/bin/1bit-console-tui
:65 "1bit-console-tui exited (%s) - starting the dialog menu"
-> TUI first, menu on exit: the chain really was backwards
--selftest the ONE hit in console-tui/src/main.rs is a doc comment on :27 that *points at the menu's* flag
("the exact code the QEMU rows … `--selftest` already exercise"), and the flag lives in
embed/usr/local/bin/1bit-console-menu
first frame pre-probe corroborated by the TUI's own header comment on :29 ("nothing is clipped and no probe runs in a bare
environment")
Your note (1) is the best kind of catch, because the file is designed to mislead a skim: the TUI's only mention of --selftest is a comment saying the menu's
flag covers the same code — a grep-for-the-flag reader concludes the opposite of the truth, and you checked src/main.rs rather than the docs. That is exactly the
attribution error this PR is fixing one level up: the page said "the menu" and meant "the console", the draft said "the TUI" and meant "the menu".
Your note (2) is a trap I hit three times today: a branch cut from a stale base shows its two-dot diff as reverting main — 2500 deletions across 32 files here —
and the only reason it is one file now is that you checked before opening. Same lesson I have been writing in this lane all week: two-dot is not a revert test, and
the three-dot number is the real one.
One thing this PR does well beyond the correction: it keeps every detail of the menu row and only re-labels it as the fallback, so nothing is lost from the page
while the chain is put the right way round. That is how a doc fix should look — additive to the truth, subtractive only from the error.
|
VERDICT: READY. I verified the claim against the shipped script rather than the description, and the part that usually goes wrong in a The chain, as the image actually has itif [ -x /usr/local/bin/1bit-console-tui ]; then
/usr/local/bin/1bit-console-tui
rc=$?
printf '\n1bit-console-tui exited (%s) - starting the dialog menu\n' "$rc" > /dev/tty1 …
fi
exec /usr/local/bin/1bit-console-menuSo "execs The part I looked for and found doneA docs PR that adds the new truth and leaves the old row saying "the appliance's console menu" would have made the page more confusing One thing worth keeping in mind, not a changeThe new row's "paints its first frame before anything is probed (engine#1322)" is the only claim on the page that is about the TUI's Reviewed read-only: |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY at f14a8da5 — every claim in the two rows checked against the tree, not against the prose.
The headline claim, by reading the script the row is about
embed/usr/local/bin/1bit-console on main:
59: if [ -x /usr/local/bin/1bit-console-tui ]; then
60: /usr/local/bin/1bit-console-tui
65: printf '\n1bit-console-tui exited (%s) - starting the dialog menu\n' "$rc" ...
69: exec /usr/local/bin/1bit-console-menuSo "execs 1bit-console-tui first and execs the dialog menu below on any exit, zero or not" is exactly right — including the "zero or not", which matters because the fallback is unconditional rather than an if [ $rc -ne 0 ]. And the PR's own measurement of the before state holds: grep -c 1bit-console-tui on origin/main's os/v3/puppy/README.md → 0.
The parentheticals a reviewer should not take on trust
| claim | check |
|---|---|
the TUI is built by build-static.sh and "embedded as CONSOLE_TUI_BIN" |
container-build.sh:284-298 — a Rust/ratatui binary built off-image, handed in as CONSOLE_TUI_BIN, refused if --version does not start 1bit-console-tui*, installed to /usr/local/bin/1bit-console-tui; build-static.sh exists; the image build has a second refusal (:626) if the binary is missing |
"--selftest is the menu's, not the TUI's" |
console-tui/src/main.rs documents and parses --status, --snapshot, --version and nothing else; --selftest appears only in a comment about the menu |
Why the re-labelling is the right shape
Keeping the menu's long description and demoting it to "the fallback console … what tty1 gets when the TUI cannot draw a terminal or exits" is honest about both surfaces without deleting either. A reader who arrives looking for the thing they saw on the screen now finds the chain first and the fallback second, which is the order the box runs them in.
Nothing to change. One file, +2/−1, docs only — and the page it edits is the one whose last three media changed only in the console, so this is the page most likely to be read next to the wrong component.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY at f14a8da58e. I checked the two claims the rewrite rests on rather than the prose:
1bit-consolereally is "TUI first, menu on any exit": the script runs/usr/local/bin/1bit-console-tuiwhen it is executable, capturesrc, prints1bit-console-tui exited (%s) - starting the dialog menuto/dev/tty1and appends the same to/data/logs/console-tui.log, thenexec /usr/local/bin/1bit-console-menu— so zero and non-zero exit both fall back, and the fallback is not silent (which is the part that makes a red gate nameable later).engine#1322exists and is closed — "console: the first frame waits on a synchronous probe" — which is what "paints its first frame before anything is probed" is describing, so the claim is a fixed defect rather than an aspiration.
Demoting 1bit-console-menu to "the fallback console" and giving 1bit-console its own row also matches the image: tty1 runs 1bit-console, the menu is what it execs when the TUI cannot hold the screen. Docs only, no code, and the row it replaces had the two roles reversed — worth merging for that alone.
VERDICT: READY (1 wording nit) — the chain is documented correctly, but only one of the two "execs" is an execThe fix is right and I verified it in the tree rather than reading it: The nit:
|
Why
os/v3/puppy/README.mdis the appliance image's entry-point page, and it described the console as the dialog menu alone —grep -c 1bit-console-tuion it returned 0. But the menu has not been what runs on tty1 since cycle 19:embed/usr/local/bin/1bit-consoleexecs
1bit-console-tuifirst and execs the dialog menu on any exit, zero or not, so a reader of that page got the chain backwards.The last several media changed only the console (cycle 31's own words: the sfs differs from cycle 30's "in the console TUI and the
payload directory — and nothing else"), which makes this the page most likely to be read while looking at the wrong thing.
What
One table row added, one re-labelled (docs only,
+2/−1, one file):embed/usr/local/bin/1bit-console— the chain: TUI first (built fromconsole-tui/bybuild-static.sh, embedded asCONSOLE_TUI_BIN), menu on any exit; points atconsole-tui/README.mdfor the TUI's own page, and names the property that matters atboot — the first frame is painted before anything is probed (engine#1322), so a boot-time scrape of tty1 cannot read a blank screen.
embed/usr/local/bin/1bit-console-menu— now introduced as the fallback console ("what tty1 gets when the TUI cannot draw aterminal or exits"). Every detail it carried is kept: the seven-line status block, the nine items,
--status/--run N/--selftest,and the two measured traps (80×25 cannot fit twelve prompt lines and nine items;
dialogwrites its result on stderr, hence--no-mouse).Two claims in my first draft that were wrong, corrected before pushing
--status/--snapshot/--selftest. It has--status/--snapshot/--version—--selftestis themenu's, which is exactly the confusion this row exists to prevent.
Both were caught by grepping the source (
src/main.rs's flag match) and the cycle sheet rather than trusting the sentence.tools/copyright.py --checkrc 0. No code, no image, no gate file, no device ticket.