Skip to content

console: the first frame waits on a synchronous probe, so a boot-time scrape of tty1 can read it empty #1322

Closed

Description

@bong-water-water-bong

What

Cycle 31's take stick (666c8ab5c689, rc-2026-11-06-c31) reddened one scrape row per boot, a different row each
time
: U2 tty1 … tty1-screen-empty on one of two runs of the identical bytes, U2 menu … (i.e. tty1-nothing) on the
other. In both runs U2 console quiet … tui-running, U2 console screen screen-chars=8000 panels=1 and U2 tty1 owner … 1bit-console-tui passed, so the console paints and owns tty1 — what varied was whether the scrape arrived before the
first frame landed
.

The mechanism is in os/v3/puppy/console-tui/src/main.rs: the first App was built from a synchronous
Facts::collect()
, and collect() waits on

call cost while the payload is still starting
GET /api/v1/models, /health, /stats 2 s timeout each (facts.rs)
llama-server --list-devices the comment says "takes seconds"; 472 ms on the c31 board once settled
ps, netstat -lnt process spawns

so the first paint could be seconds late at boot. The paint probe on the same boot puts the settled costs at 119 + 63 + 65 ms
(three gets) and 472 ms (list-devices), and says the window is boot-time (cold page cache, rc.services/lemond
starting), which is why the red row moves between runs.

.github/workflows/hw-gate.yml-style CI cannot see this: it is a timing property of the first second of a boot, and every
frame-shaped test passes either way, because the frame is correct — only late.

Fix (PR to follow, Fixes #this)

Facts::idle() — the facts a screen can be painted from without asking anything that waits (release, mode, hostname,
uptime, Secure Boot, addresses, key hint, max temperature: file reads plus one ip) — painted as the first frame, with the
collector thread's first result replacing it on the loop's first pass. The idle frame says STARTING - the probes have not answered yet rather than asserting the empty-state words (LEMONADE DOWN, DATA not mounted, amdxdna absent).

Two guards in the suite: the idle frame renders the nine actions + both gate labels and contains no pre-probe absence claim;
and a source-level test fails if main ever builds its first App from collect() again (the regression is otherwise
silent).

Found by pi-release/pi-os3 on the take stick and handed to this lane as the c32 console item.

Not this issue

The harness side (scrape rows could settle/retry — content was there 0 s after shell-ready) is pi-release's call, and the
hw_gate-runner outage the same day is #1077 territory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions