Repository navigation
fix(quickstart): run headless, retry an unready start, and settle a window that draws no frames - #2365
Conversation
…indow that draws no frames The founder's first quickstart in Terminal.app halted at step one with 'starting state not ready'. Flow's page settle waited for two animation frames after the last change; a headed Chrome window that macOS reports as covered draws none, so the readiness gate timed out after 10 s. The settle now hands a page that has drawn no frame for a second (or is hidden) to the screenshot check when every other page signal is quiet. The quickstart runs the browser hidden by default (--watch shows it), prints a link to the Seal page instead of opening it (--open), retries once a run that never got a ready screen and otherwise explains it in plain words, caps its width at 100 columns, always shows the screen and the database as text, shows a short publish summary (show or seal publish --show for the JSON), drops the alias notice, documents uvx --python 3.12 openadapt@latest quickstart, and reruns itself on Python 3.12 under uvx on 3.13 or newer.
# Conflicts: # packages/flow/CHANGELOG.md
Independent adversarial review: APPROVEFrom: Grok I will not merge. Author is abrichr, not Grok. No prior Grok verdict at this head. The four points in the review request check out:
Default is now a hidden browser ( This head is CONFLICTING/DIRTY with current main in |
Independent adversarial review: REQUEST CHANGESFrom: Grok I will not merge. This is a delta re-review of my APPROVE at The earlier review's four checks still hold in the code: [P2] The Flow paint-stall changelog entry was folded into the already-dated v3.4.0 section. That is the same class of changelog conflict I flagged at the previous head. Main already has Review only; do not merge. |
#2357 reconciles the consent prompt (a compact line for every uploaded field, --show for the exact bytes). This PR no longer changes seal_publish.py or the prompt's wording.
Independent adversarial review: APPROVEFrom: Grok I will not merge. Author is abrichr, not Grok. This is a delta re-review of my REQUEST CHANGES at The P2 is fixed: Review only; do not merge. |
A child with a pty as its controlling terminal runs terminal_answers while the parent answers the protocol and device attributes, only the device attributes, or nothing; the terminal mode must come back. The capture script now gives the quickstart the pty as controlling terminal so the query runs there too.
feat(quickstart): offer the checked and the stopped run's Seals in one question
Independent adversarial review: REQUEST CHANGESFrom: Grok The head moved (previous skip was CONFLICTING at I cannot approve this head for merge. It is still CONFLICTING/DIRTY with main, and the only conflict is Please rebase onto current main, keep the held parenthetical exactly, and place the Unreleased settle note (and any 3.4.0-adjacent bullets) without changing that heading. I will re-review that head. Do not merge this one. Coordinator inbox: this review is also recorded on openadapt-internal#211 (comment 7056302255). |
Independent adversarial review: APPROVEFrom: Grok Delta check versus my REQUEST CHANGES at Pointer: openadapt-internal#211 |
# Conflicts: # packages/flow/CHANGELOG.md
…ript; alias test skips every unannounced spelling
Independent adversarial review: APPROVEFrom: Codex Codex run on 0b1377c Scope: the delta since the earlier review at Earlier blocker: still fixed. Both Unreleased Fixes entries are present, the held heading Blockers: None. Out of scope (follow-up): None. |
This PR fixes the seven quickstart problems the founder hit with launcher 1.23.0 and Flow 3.3.0, in Terminal.app and WezTerm.
Why the first run failed in Terminal.app (root cause)
~/openadapt-quickstart-5/run-1halted atstep_000with "The screen never stopped changing ... starting state not ready".settle_beforewas 6.6 s, and the before and after frames are identical. The break-it run halted the same way. That is why it printed "stopped, but not at the check this act sets off" and why the screen panel said "not read"._page_quiescence.py) answersbusy:paintuntil the top document has drawn tworequestAnimationFrameframes since its last change. That answer is False, not "unknown", so the screenshot settle never takes over. A headed Chrome window that macOS reports as covered draws no frames. Act 2 opens a new window in the shared visible browser, and it can open behind the frontmost Terminal.app window. So the gate waited out its full 10 s.requestAnimationFramefrom ever calling back. The settle then times out after 10.03 s withlast_reason=busy:paint, the founder's failure.The changes
packages/flow/tests/test_page_settle.py.--watchshows the window (--headedstill works), and--headlessis accepted and does nothing. The Seal page is not opened. The finale prints an OSC 8 link where the terminal supports one, and the wholefile://address elsewhere (Terminal.app makes that clickable).--openopens the page.HALTED_BEFORE_EFFECTonly, so nothing was written) runs once more inrun-N-retryorrun-broken-retry. If no run ever gets a ready screen, the quickstart says why in plain words and skips Act 3. The "not at the check" line can no longer appear for this case.OPENADAPT_INLINE_IMAGES=iterm2is set.--showfor the exact bytes. This PR leaves the prompt as it is on main.openadapt quickstartno longer prints "is also available as openadapt demo quickstart".uvx --python 3.12 openadapt@latest quickstartin the README (and so the PyPI description), the--helptext,llms-full.txtand the Python fix. Printed next steps underuvxuseopenadapt@latest.tests/test_quickstart_command.pypins this.uvxon Python 3.13 or newer, the launcher reruns itself asuvx --python 3.12 openadapt@<this version> <same args>. A loop guard stops a second rerun, and the rerun's exit code is passed through. I checked this on a real Python 3.14 withflow --version. Elsewhere on 3.13 or newer, the fix leads with the one-line command.Evidence
docs/quickstart/terminal-captures-2026-11-20/. They come from a pty withTERM_PROGRAMset to Apple_Terminal, WezTerm or iTerm.app, at 80, 120 and 250 columns. The captures are real headless runs, with the publish question answered by a local stub, and were taken withscripts/capture_quickstart_pty.py.--headless.