Skip to content

test(ui): preserve nested failure summaries in CI logs - #146864

Merged
steipete merged 3 commits into
mainfrom
codex/control-ui-diagnostic-json
Sep 13, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/control-ui-diagnostic-json

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Node renders nested safe Control UI failure details as [Object], hiding facts such as the send-button label and state during the intermittent approval-flow failure. The shared capture owner already has those sanitized facts; console formatting loses them.

User Impact

Failure logs retain the complete existing sanitized summary as JSON. Product behavior, test scheduling and deadlines are unchanged. This improves diagnosis without claiming to fix or explain the intermittent approval-flow failure.

Why This Change Was Made

Serialize the existing closed { browser, models } summary before artifact I/O. Raw browser state, frame data, credentials, model identifiers and draft text stay outside console output. Capture failures preserve the original test error. Existing tests now exercise Node's real formatter instead of only inspecting the spy's in-memory argument.

This head also retains the reviewed one-line file-tab fixture correction from c1f1ea3. The identical correction subsequently landed on main in #146810 (ff9c1b0), so it adds no further behavior when this PR merges. The remaining net change is the two diagnostic files.

Evidence

Four existing diagnostic cases failed against the original [Object] rendering; all nine pass with JSON serialization. Nested facts, private-data exclusion, repeated captures, screenshot/storage failures and original-error preservation remain asserted. Both changed-file gates and independent P2 reviews passed, including a combined review of the retained three-file head; final files match their tested hashes.

The corrected file-link case passed with all six siblings in original order, taking 1.37s locally. Its content, distinct roots, path, target-line, keyboard and detachment assertions are retained. The hosted old-selector failure and local pass are not a controlled timing comparison.

Exact-head CI 34748471920 passed at 7fc7a1a. CI checkout logs verify that head in the tested merge. All 56 real-Gateway cases in 28 files passed in 405.70s; no speedup from this diagnostic change is claimed.

Production LOC: 0; net new test support: -1; tests: +11. No new cases, fields, waits, timeouts, shards or caching. Changelog remains release-owned.

@steipete steipete self-assigned this Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 6:00 AM ET / 10:00 UTC (Revision 3).

ClawSweeper review

What this changes

The PR preserves nested, sanitized browser-test failure details in CI logs, strengthens output assertions, and corrects a file-tab close selector.

Merge readiness

✅ Ready for maintainer review

The logging fix remains useful on current main, and no actionable correctness or security findings remain. The merged file-tab correction overlaps only a minor part of this maintainer-owned PR.

Priority: P3
Reviewed head: 7fc7a1a8d7782ddea60518e082eb6cc4d5377ffe

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful regression assertions, verified passing CI, and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The contributor-proof gate is exempt for this maintainer-owned test-infrastructure PR. Formatter regression coverage directly targets the diagnostic owner; the verified passing CI run provides supplemental integration evidence, not proof that a browser failure emitted JSON.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor-proof gate is exempt for this maintainer-owned test-infrastructure PR. Formatter regression coverage directly targets the diagnostic owner; the verified passing CI run provides supplemental integration evidence, not proof that a browser failure emitted JSON.
Evidence reviewed 8 items Introduced change verified: The merge-base comparison matches the supplied three-file introduction evidence. The patch serializes the existing summary without changing its fields, artifact format, deadlines, or capture-error handling.
Current main still needs the central fix: Fetched main still passes the nested summary object directly to console.error. It already contains the corrected named-file-tab selector.
Meaningful regression assertions: The complete diagnostic tests exercise Node's formatter, assert nested composer and model facts, reject private fixture text in console output, retain frame details in artifacts, and preserve original errors through repeated captures and storage/screenshot failures.
Findings None None.
Security None None.

How this fits together

Control UI browser tests collect diagnostic state when a wait fails. The shared capture helper sends sanitized facts to CI logs and writes detailed reports and screenshots to separate artifacts.

flowchart TD
  A[Browser test failure] --> B[Shared diagnostic capture]
  B --> C[Browser state and recorded responses]
  C --> D[Sanitized summary]
  D --> E[JSON in CI logs]
  B --> F[Detailed report and screenshot]
  B --> G[Original test failure preserved]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +10. Total +10 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 19 9 +10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 19 9 +10

Review metrics

None.

Technical review

Best possible solution:

Keep diagnostic projection in the existing capture owner and serialize its sanitized facts before artifact I/O.

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

Yes, from source: the existing nested summary passes through Node's depth-limited object formatting, and the updated tests inspect the rendered output. This review did not execute the failure path.

Is this the best way to solve the issue?

Yes. Serializing the existing safe projection is a narrow repair that preserves its owner, privacy boundary, artifact behavior, and original-error handling.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This improves internal test diagnostics and fixture accuracy without changing product runtime behavior.
  • 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: The contributor-proof gate is exempt for this maintainer-owned test-infrastructure PR. Formatter regression coverage directly targets the diagnostic owner; the verified passing CI run provides supplemental integration evidence, not proof that a browser failure emitted JSON.

Evidence

What I checked:

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-13T08:03:21.527Z sha 7cdf155b09450bf73496b567eac06e8bb7c297d5 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T09:42:22.372Z sha 7fc7a1a :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the codex/control-ui-diagnostic-json branch from 7cdf155 to 7fc7a1a Compare September 13, 2026 08:46
@steipete steipete changed the title test(ui): preserve nested failure summaries in CI logs test(ui): fix file-tab closing and retain CI failure details Sep 13, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The refreshed head adds the reviewed one-line file-tab fixture correction and incorporates the shared CI prerequisites. The PR body now describes the complete three-file change and proof. Exact-head CI passed, including all 56 real-Gateway cases; the combined independent review found no actionable issue.

@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete steipete changed the title test(ui): fix file-tab closing and retain CI failure details test(ui): preserve nested failure summaries in CI logs Sep 13, 2026
@steipete
steipete merged commit e4ad867 into main Sep 13, 2026
137 of 138 checks passed
@steipete
steipete deleted the codex/control-ui-diagnostic-json branch September 13, 2026 11:59
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* commit '4aff70f27016f9acf62d0acc19c8bd3592993e4c': (1537 commits)
  test: align plugin fixtures with current runtime contracts (#147000)
  refactor(browser): separate session tab tracking from cleanup (#146973)
  fix(tests): make systemd clock fixtures private (#146990)
  fix(linux): retire sleep guards when logind disconnects (#146046)
  refactor(matrix): share draft fallback delivery (#144840)
  fix(sessions): preserve cross-agent replies after reload (#146799)
  test(models): cover quota recovery during catalog discovery (#146708)
  fix(macos): recover browser sign-in when no browser opens (#146787)
  fix(process): prevent one-shot agents exiting while polling (#144268)
  fix(status): label the session inventory as stored (#146979)
  fix: avoid repeated background reads while loading chat (#146953)
  refactor(ui): narrow Skill Workshop proposal context (#146977)
  perf(sessions): keep cleanup responsive and reuse workers (#140897)
  fix(sessions): prevent stranded writers after abort and restart (#146792)
  refactor: reuse deferred owners in Gateway and infra fixtures (#146809)
  fix: prevent queued conversation replies from switching storage (#146984)
  test(ui): preserve nested failure summaries in CI logs (#146864)
  fix(test): respect process memory limits in local scheduling (#146298)
  fix: validate large media data URLs without regexp stack exhaustion (#146972)
  fix(ui): label model usage contributions as messages (#146735)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* commit '4aff70f27016f9acf62d0acc19c8bd3592993e4c': (30 commits)
  test: align plugin fixtures with current runtime contracts (#147000)
  refactor(browser): separate session tab tracking from cleanup (#146973)
  fix(tests): make systemd clock fixtures private (#146990)
  fix(linux): retire sleep guards when logind disconnects (#146046)
  refactor(matrix): share draft fallback delivery (#144840)
  fix(sessions): preserve cross-agent replies after reload (#146799)
  test(models): cover quota recovery during catalog discovery (#146708)
  fix(macos): recover browser sign-in when no browser opens (#146787)
  fix(process): prevent one-shot agents exiting while polling (#144268)
  fix(status): label the session inventory as stored (#146979)
  fix: avoid repeated background reads while loading chat (#146953)
  refactor(ui): narrow Skill Workshop proposal context (#146977)
  perf(sessions): keep cleanup responsive and reuse workers (#140897)
  fix(sessions): prevent stranded writers after abort and restart (#146792)
  refactor: reuse deferred owners in Gateway and infra fixtures (#146809)
  fix: prevent queued conversation replies from switching storage (#146984)
  test(ui): preserve nested failure summaries in CI logs (#146864)
  fix(test): respect process memory limits in local scheduling (#146298)
  fix: validate large media data URLs without regexp stack exhaustion (#146972)
  fix(ui): label model usage contributions as messages (#146735)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
* test(ui): close file previews through their hosted tabs

* test(ui): preserve nested failure summaries in CI logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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