Skip to content

test: align onboarding TTY prompts - #124199

Merged
jalehman merged 1 commit into
mainfrom
oc-efc/release-typed-onboarding
Aug 15, 2026
Merged

jalehman merged 1 commit into
mainfrom
oc-efc/release-typed-onboarding

Conversation

@jalehman

Copy link
Copy Markdown
Contributor

What

Keep the release and guided real-TTY onboarding drivers aligned with the public first-agent naming prompt. Both drivers now accept the prefilled main name before continuing to their existing provider or discovery prompts.

Why

Full Release Validation run 31871527419 exposed a stale prompt sequence in child run 31871544784, job 94982013182. The packaged CLI reached What should we call your first agent?, but the driver waited for the later provider picker and timed out. Current main reproduced the same failure from a packaged tarball in a real pseudo-TTY.

The prompt was introduced by #123521 in 2a77e6e5a05d. The release driver sequence predates it and retained its original ebd829cffd1 blame. The guided skip-UI driver shared the same assumption because its fresh fixture has no authored agent roster.

Changes

  • Accept the default first-agent name
  • Repair the guided TTY sibling flow
  • Guard both ordered prompt sequences

Testing

  • Failure before: corepack pnpm test:docker:release-typed-onboarding at 7ce902c8b6001b94b4ac5ba39fcf1118db6ac069 failed on Testbox tbx_01m030jf2hmy42xr4rvzfn4ckb with Timeout waiting for log: to search while the PTY displayed the first-agent prompt.
  • Regression before repair: corepack pnpm test test/scripts/docker-build-helper.test.ts failed 1 test with 194 passing because the ordered first-agent wait was absent.
  • Regression after repair: the same focused command passed all 195 tests on Testbox tbx_01m0312cneh845xcxayvzkmqax.
  • Real package and sibling proof: corepack pnpm test:docker:release-typed-onboarding && corepack pnpm test:docker:onboard passed on Testbox tbx_01m0314rtnhgbm8ctmafjctb9h. The packaged release lane completed, and the sibling lane emitted QA_ASSERT cli.guided-onboarding pass.
  • Changed gates: node scripts/check-changed.mjs -- scripts/e2e/lib/onboard/scenario.sh scripts/e2e/lib/release-typed-onboarding/scenario.sh test/scripts/docker-build-helper.test.ts passed formatting, test-root typecheck, script lint, Docker boundary/catalog, dependency, patch, and related guards on Testbox tbx_01m031h0vz6ftmzmzaa2f269yr.
  • Shell checks: bash -n passed for both changed shell drivers; git diff --check passed.
  • Autoreview: .agents/skills/autoreview/scripts/autoreview --mode local reported autoreview clean: no accepted/actionable findings reported.

Production code delta is zero. The change adds four tooling lines and 30 test lines.

Remaining gaps

None for this repair. Full Release Validation was not rerun because the focused packaged release lane directly exercises the failed boundary.

Agent Transcript

Redacted codex session transcript
source: [LOCAL_SESSION]
redaction: local paths, emails, phone-shaped strings, token-shaped strings, auth headers, auth query params
omitted: raw tool outputs, system/developer prompts, local paths, secrets, browser/session/auth details
stats: {"agent":"codex","entries":3,"user":1,"assistant":1,"toolCalls":4,"toolOutputsDropped":4,"web":0,"redactions":1,"omittedUnsafe":0,"rawEntries":14}

[user]
[instructions recap omitted; policy/config text, not task dialogue]

[assistant]
I’ll use the OpenClaw testing, test-audit, release-CI, autoreview, prepare-PR, agent-transcript, and technical-writing skills because this is a release-lane repair and PR handoff. I’ll first preserve/check the app worktree, reproduce current-main behavior, and complete the required investigation and Pebbles planning before editing. I’ll also delegate independent sibling/history evidence lanes as required by the repository’s Repair Doctrine, while personally verifying the consequential evidence.

The app worktree was clean but pinned to `c0824d2`; `origin/main` advanced to `7ce902c`. I’m moving the clean detached worktree to that exact default-branch tip before reproduction. The cited release run targeted `079bb34`, and its package lane resolved candidate SHA `8f382a2`; I’m treating those as historical failure evidence and will separately prove the defect still exists at `7ce902c`.

The downloaded lane artifact confirms the exact stall: the packaged CLI accepted `Continue?`, rendered `What should we call your first agent?`, and the driver timed out waiting for `to search` after 101 seconds. Current `origin/main` still has the same two-answer sequence. I’m now running the same packaged Docker lane from `7ce902c` on a disposable Blacksmith Testbox to establish the required current-main failure before any edit.

Current-main reproduction is now confirmed at exact SHA `7ce902c`: the packaged tarball installed into the bare Docker image, the real PTY reached the new agent-name prompt, and the lane failed with the same `Timeout waiting for log: to search` (`tbx_01m030…`, exit 1). The disposable Testbox stopped cleanly. The sibling audit found one shared defect in the guided onboarding PTY driver; all other PTY cases are `configure` flows and do not cross this prompt. I’m documenting the owner boundary and test design now, then I’ll create the required Pebbles epic/tasks before touching source.

The required investigation and local task plan are complete. The test-audit decision is to add one ordered script-contract regression covering both affected consumers; product unit tests already cover prompt generation, and the packaged Docker lane will prove the real boundary.

The local focused wrapper cannot start because this linked worktree has no `tsx`; per repository policy I’m not reconciling dependencies here. I’m moving the pre-fix regression proof to Testbox. This is still the test-only commit state, so a failure will demonstrate the regression before the driver repair.

The focused regression failed for the intended reason before the fix: one failure, 194 passes, with the missing first-agent wait as the assertion. Both drivers now wait for that exact documented prompt and press Enter to accept the prefilled `main`; no product code, sleeps, timeouts, retries, or flags changed. Bash syntax and `git diff --check` pass. I’m rerunning the same regression on the repaired source next.

The repaired regression now passes all 195 tests on Testbox. I’m moving to real-boundary proof: first the required packaged `release-typed-onboarding` lane, then the sibling `onboard` Docker lane in the same disposable remote command so both real-TTY consumers are exercised.

The remote lane is healthy and still in the package build phase; it has synced exactly the three changed files and is progressing through the normal build stages. No failure or stall signal so far.

Both real boundaries pass: the packaged release lane completed end-to-end, and the sibling onboarding lane emitted `QA_ASSERT cli.guided-onboarding pass` plus its other onboarding assertions. The one-shot Testbox stopped cleanly. I’m now running changed-scope classification/gates, reviewing LOC and formatting, then autoreview.

Changed-scope gates are green: formatting, test-root typecheck, script lint, Docker boundary/catalog guard, dependency/patch guards, and related checks all passed on Testbox. LOC is +4 tooling lines and +30 test lines, with zero production-code change. I’m starting the mandated autoreview now against the three-file local patch.

Autoreview is clean on the first pass: `autoreview clean: no accepted/actionable findings reported` with no findings to accept or reject. The scoped commit is `4514c6b8c4f`; the worktree is clean. I’m pushing this branch with a non-force update, then I’ll build the PR body and use the agent-transcript skill to append a sanitized, task-only transcript as explicitly requested.

[tool summary]
4 other; raw tool outputs dropped: 4

@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Aug 15, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 15, 2026
@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 11:52 AM ET / 15:52 UTC.

ClawSweeper review

What this changes

The PR updates two real-TTY onboarding drivers to accept the default first-agent name before continuing and adds a regression test for both prompt sequences.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main still presents the first-agent-name prompt before both affected pseudo-TTY drivers’ former next waits; this branch accepts the documented default and adds an ordered regression guard. No blocking correctness findings were identified.

Priority: P2
Reviewed head: 4514c6b8c4fc364f86bd31b3db9eaad44b40fba3

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, source-proven repair with focused regression coverage and documented package-lane validation.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-labelled PR includes documented Testbox package and sibling pseudo-TTY runs; the external-contributor proof gate does not apply.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-labelled PR includes documented Testbox package and sibling pseudo-TTY runs; the external-contributor proof gate does not apply.
Evidence reviewed 8 items Current CLI contract: Fresh interactive onboarding calls the first-agent prompt with the prefilled main value when no authored roster exists.
Affected guided caller: Guided onboarding invokes that prompt before its later access-mode question, while current main’s guided pseudo-TTY driver started directly at the later question.
Branch repairs both driver sequences: The branch waits for the public first-agent prompt, submits Enter to retain main, then continues to the original provider or discovery prompt in each scenario.
Findings None None.
Security None None.

How this fits together

Release and guided onboarding scenarios drive a packaged OpenClaw CLI through pseudo-TTY input. They must consume the public onboarding prompts in order so package validation can reach provider setup and complete.

flowchart LR
A[Fresh packaged CLI] --> B[Interactive onboarding]
B --> C[First-agent name prompt]
C --> D[TTY scenario drivers]
D --> E[Provider or discovery prompts]
E --> F[Release and onboarding validation]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +30, Other +4. Total +34 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 30 0 +30
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 4 0 +4
Total 3 34 0 +34

Review metrics

Metric Value Why it matters
Production versus test delta production 0, test support +4, tests +30 The patch changes only pseudo-TTY validation drivers and their regression guard; shipped onboarding code is unchanged.

Technical review

Best possible solution:

Land the test-only driver alignment after normal exact-head checks complete, without changing the CLI’s interactive onboarding behavior.

Do we have a high-confidence way to reproduce the issue?

Yes—source reproducible. Fresh interactive onboarding inserts the documented first-agent prompt before both current-main scenario drivers’ next expected prompts; the PR also records a packaged pseudo-TTY reproduction.

Is this the best way to solve the issue?

Yes. The CLI correctly owns the public prompt; updating its two prompt-driving test consumers and guarding their order is the narrowest maintainable repair.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a5603681c617.

Labels

Label changes:

  • add P2: This repairs a reproducible release-validation onboarding failure with limited blast radius and no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-labelled PR includes documented Testbox package and sibling pseudo-TTY runs; the external-contributor proof gate does not apply.

Label justifications:

  • P2: This repairs a reproducible release-validation onboarding failure with limited blast radius and no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-labelled PR includes documented Testbox package and sibling pseudo-TTY runs; the external-contributor proof gate does not apply.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the merged first-agent feature and the earlier release-driver commit that this repair aligns with the public prompt contract. (role: first-agent onboarding feature owner; confidence: high; commits: 2a77e6e5a05d, ebd829cffd1b; files: src/commands/onboard-first-agent.ts, scripts/e2e/lib/release-typed-onboarding/scenario.sh, scripts/e2e/lib/onboard/scenario.sh)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@jalehman
jalehman merged commit 8cfcc31 into main Aug 15, 2026
175 checks passed
@jalehman
jalehman deleted the oc-efc/release-typed-onboarding branch August 15, 2026 15:58
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 16, 2026
steipete pushed a commit that referenced this pull request Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant