Repository navigation
test: align onboarding TTY prompts - #124199
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 11:52 AM ET / 15:52 UTC. ClawSweeper reviewWhat this changesThe 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 provenancePossible 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 Review scores
Verification
How this fits togetherRelease 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +30, Other +4. Total +34 across 3 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
(cherry picked from commit 8cfcc31)
What
Keep the release and guided real-TTY onboarding drivers aligned with the public first-agent naming prompt. Both drivers now accept the prefilled
mainname 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. Currentmainreproduced 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 originalebd829cffd1blame. The guided skip-UI driver shared the same assumption because its fresh fixture has no authored agent roster.Changes
Testing
corepack pnpm test:docker:release-typed-onboardingat7ce902c8b6001b94b4ac5ba39fcf1118db6ac069failed on Testboxtbx_01m030jf2hmy42xr4rvzfn4ckbwithTimeout waiting for log: to searchwhile the PTY displayed the first-agent prompt.corepack pnpm test test/scripts/docker-build-helper.test.tsfailed 1 test with 194 passing because the ordered first-agent wait was absent.tbx_01m0312cneh845xcxayvzkmqax.corepack pnpm test:docker:release-typed-onboarding && corepack pnpm test:docker:onboardpassed on Testboxtbx_01m0314rtnhgbm8ctmafjctb9h. The packaged release lane completed, and the sibling lane emittedQA_ASSERT cli.guided-onboarding pass.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.tspassed formatting, test-root typecheck, script lint, Docker boundary/catalog, dependency, patch, and related guards on Testboxtbx_01m031h0vz6ftmzmzaa2f269yr.bash -npassed for both changed shell drivers;git diff --checkpassed..agents/skills/autoreview/scripts/autoreview --mode localreportedautoreview 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