Skip to content

fix(qa): retain onboarding prompts across redraw bursts - #147687

Merged
RomneyDa merged 1 commit into
mainfrom
fix/qa-onboard-log-window
Sep 14, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/qa-onboard-log-window

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • retain a bounded 1 MiB onboarding log window instead of only 120 KiB
  • prove prompts survive large Clack redraw bursts without making the search unbounded

Why

Several onboarding scenarios in maturity run 34681094383 emitted their expected prompt, but later terminal redraw output evicted it from the helper's small tail window before the assertion ran.

Verification

  • pnpm exec vitest run test/scripts/onboard-log-contains.test.ts (4/4)
  • pnpm check:changed
  • autoreview P0-P2: clean

Source run: https://github.com/openclaw/openclaw/actions/runs/34681094383

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@RomneyDa
RomneyDa marked this pull request as ready for review September 14, 2026 01:44
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Sep 14, 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 Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 9:52 PM ET / September 14, 2026, 01:52 UTC.

ClawSweeper review

What this changes

The PR expands onboarding QA log searches from 120,000 bytes to 1 MiB and adds regression coverage for prompts followed by large terminal redraws.

Merge readiness

✅ Ready for maintainer review

Keep open: current main and the latest release retain the smaller search window, so this focused repair remains useful. No blocking correctness or security defect was found.

Priority: P2
Reviewed head: 353bbccbc62336024c128d01c405ded2d1e7c839

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful regression coverage and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored QA-helper repair is exempt from the external-contributor proof gate. Reported focused tests cover prompt retention; the linked earlier failed run does not demonstrate after-fix onboarding recovery.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored QA-helper repair is exempt from the external-contributor proof gate. Reported focused tests cover prompt retention; the linked earlier failed run does not demonstrate after-fix onboarding recovery.
Evidence reviewed 6 items Verified introduced change: The merge-base-to-head diff changes only the helper's default byte limit and adds one regression case; it matches the host's introduction evidence.
Current-main behavior: Fetched main still sets DEFAULT_MAX_LOG_BYTES to 120,000 and truncates before normalization and matching.
Latest-release comparison: The supplied latest release, v2026.9.4, also contains the 120,000-byte default; this repair is not present there.
Findings None None.
Security None None.

How this fits together

OpenClaw's onboarding QA drivers capture terminal output and search it before sending the next input. This helper normalizes terminal formatting and searches a bounded tail when literal matching fails.

flowchart LR
  A[Onboarding terminal output] --> B[Captured wizard log]
  B --> C{Literal prompt found?}
  C -->|Yes| F[QA driver continues]
  C -->|No| D[Read bounded log tail]
  D --> E[Normalize and match prompt]
  E -->|Found| F
  E -->|Missing| G[Continue waiting or time out]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +8, Other +2. Total +10 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 8 0 +8
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 1 +2
Total 2 11 1 +10

Review metrics

Metric Value Why it matters
Maximum normalized-search input 120,000 bytes → 1,048,576 bytes The helper can retain longer redraw bursts while preserving a finite per-poll read.

Technical review

Best possible solution:

Keep prompt matching in the existing shared helper with a larger bounded window and regression coverage that preserves the read limit.

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

Yes, at the helper boundary: the added fixture puts the expected prompt outside main's 120,000-byte tail but inside the proposed 1 MiB tail. The full onboarding failure was not rerun in this read-only review.

Is this the best way to solve the issue?

Yes. Adjusting the existing helper's bounded window addresses the demonstrated eviction without adding another matcher, changing polling timeouts, or weakening assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e7a3d9208228.

Labels

Label changes:

  • add P2: This repairs false onboarding QA failures with a limited tooling-only blast radius.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored QA-helper repair is exempt from the external-contributor proof gate. Reported focused tests cover prompt retention; the linked earlier failed run does not demonstrate after-fix onboarding recovery.

Label justifications:

  • P2: This repairs false onboarding QA failures with a limited tooling-only blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored QA-helper repair is exempt from the external-contributor proof gate. Reported focused tests cover prompt retention; the linked earlier failed run does not demonstrate after-fix onboarding recovery.

Evidence

What I checked:

  • Verified introduced change: The merge-base-to-head diff changes only the helper's default byte limit and adds one regression case; it matches the host's introduction evidence. (scripts/e2e/lib/onboard/log-contains.mjs:7, 353bbccbc623)
  • Current-main behavior: Fetched main still sets DEFAULT_MAX_LOG_BYTES to 120,000 and truncates before normalization and matching. (scripts/e2e/lib/onboard/log-contains.mjs:5, e7a3d9208228)
  • Latest-release comparison: The supplied latest release, v2026.9.4, also contains the 120,000-byte default; this repair is not present there. (scripts/e2e/lib/onboard/log-contains.mjs:5, 3a9d69db306c)
  • Caller contract and regression coverage: Both onboarding scenario drivers invoke this helper after literal grep fails. The new fixture places its prompt before approximately 264 KB of redraw output, exceeding the old limit while fitting the new one. Existing tests retain explicit bounded-read and CLI exit-status coverage. Tests were inspected, not executed, under the read-only review constraint. (test/scripts/onboard-log-contains.test.ts:42, 353bbccbc623)
  • Feature-history routing: Current-main path history identifies Vincent Koc's bounded-read implementation and later constant localization. Local deeper history/blame encountered unavailable historical objects; GitHub's commit endpoint independently supplied the bounded-read patch and author login vincentkoc. No causal regression attribution is made. (scripts/e2e/lib/onboard/log-contains.mjs, ed7f259ce794)
  • Reported validation and source run: The captured PR body reports four passing focused tests and check:changed. Its linked Maturity scorecard run completed with failure at an earlier revision; that run provides incident context, not after-fix runtime proof. (182741019dfd)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

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.

@RomneyDa
RomneyDa merged commit 302ab8d into main Sep 14, 2026
136 of 137 checks passed
@RomneyDa
RomneyDa deleted the fix/qa-onboard-log-window branch September 14, 2026 06:55
vincentkoc added a commit that referenced this pull request Sep 14, 2026
* commit '8e6fe8e02ddb51bfec4e80071f0f2adcae4cf098': (47 commits)
  refactor: simplify Gateway health response parsing (#147834)
  fix: avoid Gateway stalls when renaming sessions (#147869)
  refactor(plugins): reuse worker optional-method validation (#147925)
  refactor(infra): remove unreachable firewall diagnostic fallback (#147882)
  fix(ui): open attached automations from session hovercards (#147749)
  refactor(reply): share usage-bar numeric coercion (#147863)
  fix(doctor): report warnings for keyed agent configs (#123058)
  perf(plugins): reuse complete registry comparisons (#147893)
  fix(workboard): await lifecycle sweep completion in tests (#147950)
  fix: reduce stalls when browsing large session inventories (#147911)
  refactor(onboard): share custom model definition (#147915)
  feat(ios): collapse completed chat work above replies (#148002)
  fix(voice-call): retain state runtime for deferred streams (#147689)
  test(qa): compare Telegram entities semantically (#147752)
  fix(plugins): preserve runtime scope for deferred CLI actions (#147688)
  test(qa): keep Slack progress marker visible (#147748)
  test(qa): finish channel picker prompts (#147730)
  test(tui): handle auth restriction prompt (#147729)
  fix(qa): retain onboarding prompts across redraw bursts (#147687)
  fix(qa): seed Teams ambiguous timeout deterministically (#147686)
  ...
vincentkoc added a commit to SunnyShu0925/openclaw that referenced this pull request Sep 14, 2026
* commit '069710f909f0a7158777d0fc0bf1eab84e20c699': (45 commits)
  refactor(infra): consolidate update campaign reset ownership (openclaw#146555)
  refactor: simplify Gateway health response parsing (openclaw#147834)
  fix: avoid Gateway stalls when renaming sessions (openclaw#147869)
  refactor(plugins): reuse worker optional-method validation (openclaw#147925)
  refactor(infra): remove unreachable firewall diagnostic fallback (openclaw#147882)
  fix(ui): open attached automations from session hovercards (openclaw#147749)
  refactor(reply): share usage-bar numeric coercion (openclaw#147863)
  fix(doctor): report warnings for keyed agent configs (openclaw#123058)
  perf(plugins): reuse complete registry comparisons (openclaw#147893)
  fix(workboard): await lifecycle sweep completion in tests (openclaw#147950)
  fix: reduce stalls when browsing large session inventories (openclaw#147911)
  refactor(onboard): share custom model definition (openclaw#147915)
  feat(ios): collapse completed chat work above replies (openclaw#148002)
  fix(voice-call): retain state runtime for deferred streams (openclaw#147689)
  test(qa): compare Telegram entities semantically (openclaw#147752)
  fix(plugins): preserve runtime scope for deferred CLI actions (openclaw#147688)
  test(qa): keep Slack progress marker visible (openclaw#147748)
  test(qa): finish channel picker prompts (openclaw#147730)
  test(tui): handle auth restriction prompt (openclaw#147729)
  fix(qa): retain onboarding prompts across redraw bursts (openclaw#147687)
  ...
vincentkoc added a commit to nvtoroy/openclaw that referenced this pull request Sep 14, 2026
* commit '4ddb9ed21245eaca9f243e555a5ec070aaaf0dad': (113 commits)
  fix: avoid Gateway stalls when renaming sessions (openclaw#147869)
  refactor(plugins): reuse worker optional-method validation (openclaw#147925)
  refactor(infra): remove unreachable firewall diagnostic fallback (openclaw#147882)
  fix(ui): open attached automations from session hovercards (openclaw#147749)
  refactor(reply): share usage-bar numeric coercion (openclaw#147863)
  fix(doctor): report warnings for keyed agent configs (openclaw#123058)
  perf(plugins): reuse complete registry comparisons (openclaw#147893)
  fix(workboard): await lifecycle sweep completion in tests (openclaw#147950)
  fix: reduce stalls when browsing large session inventories (openclaw#147911)
  refactor(onboard): share custom model definition (openclaw#147915)
  feat(ios): collapse completed chat work above replies (openclaw#148002)
  fix(voice-call): retain state runtime for deferred streams (openclaw#147689)
  test(qa): compare Telegram entities semantically (openclaw#147752)
  fix(plugins): preserve runtime scope for deferred CLI actions (openclaw#147688)
  test(qa): keep Slack progress marker visible (openclaw#147748)
  test(qa): finish channel picker prompts (openclaw#147730)
  test(tui): handle auth restriction prompt (openclaw#147729)
  fix(qa): retain onboarding prompts across redraw bursts (openclaw#147687)
  fix(qa): seed Teams ambiguous timeout deterministically (openclaw#147686)
  refactor(mcp): load OAuth only when credentials are needed (openclaw#147884)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 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