Skip to content

fix(live-proof): wait for display and recorder readiness in the terminal driver - #1186

Merged
steipete merged 1 commit into
mainfrom
steipete/live-proof-terminal-driver
Aug 17, 2026
Merged

fix(live-proof): wait for display and recorder readiness in the terminal driver#1186
steipete merged 1 commit into
mainfrom
steipete/live-proof-terminal-driver

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

The first production terminal live proof (openclaw/crabbox#1379, run 32017763576 — an organic, model-recommended dispatch from a fallback-profiled repo) failed with "terminal driver did not finalize a recording": ffmpeg launched against the xvfb display after a fixed one-second sleep, before Xvfb accepted connections, and died silently inside its detached tmux session.

The terminal driver now polls readiness at every boundary — xdpyinfo until the display accepts connections (30s bound), recorder output existence and growth (15s), and recorder exit after finalize (20s) — and attaches tmux capture-pane diagnostics from all three sessions to any failure. x11-utils joins the workflow's recording tools. All polling goes through the injected runner with tests covering slow display, late-appearing recorder files, dead recorders, and finalize waits.

Also registers the batch-publish dispatch lane's setup-state site in the state-writer audits — those two audits have been red on main since #1185 (the site itself met every invariant; only the audited inventory was missing the entry).

Validation

  • pnpm build clean; full unit suite 2,291 passed, 0 failed.
  • state-writer audits 8/8 (previously 6/8 on main).
  • Autoreview (Codex, gpt-5.6-sol, high): clean, "patch is correct (0.99)".

…nal driver

The first production terminal recording (openclaw/crabbox#1379, run
32017763576) failed because ffmpeg launched against the xvfb display
before it accepted connections and died silently inside its detached
tmux session. The driver now polls xdpyinfo for display readiness,
waits for the recorder output to exist and grow, waits for the recorder
to exit after finalize, and attaches capture-pane diagnostics from all
three sessions to any failure. Also registers the batch-publish dispatch
lane's setup-state site in the state-writer audits, which were red on
main since #1185.
@steipete
steipete requested a review from a team as a code owner August 17, 2026 10:44
@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(live-proof): wait for display and recorder readiness in the terminal driver This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete merged commit ca67734 into main Aug 17, 2026
8 checks passed
@steipete
steipete deleted the steipete/live-proof-terminal-driver branch August 17, 2026 10:46
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