Skip to content

refactor: remove UI and native test residue - #124152

Merged
steipete merged 1 commit into
mainfrom
test/remove-ui-native-test-residue
Aug 15, 2026
Merged

steipete merged 1 commit into
mainfrom
test/remove-ui-native-test-residue

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes a final cluster of UI and native tests that duplicated stronger owner-boundary coverage, asserted copied inventories, or only exercised view construction without checking a protected behavior. The stale question-panel clock option also remained in production solely because tests still supplied it.

Why This Change Was Made

The cleanup keeps the real contracts at their owners: Canvas pin failure remains covered through the session-dashboard browser flow, settings routing remains exhaustively covered by the settings-target registry, and the retained native suites continue to exercise the meaningful overlay replacement and settings-hosting regressions. The unused nowMs option is deleted instead of preserving a test-only production seam.

User Impact

No user-visible behavior changes. The suite is smaller and less coupled to implementation details, while the higher-value browser, routing, build, and native owner coverage remains intact.

Evidence

  • Focused Control UI owners plus the Canvas session-dashboard browser flow: 6 files, 101 tests passed.
  • pnpm ui:build passed, including finalized sidecar and performance checks.
  • Remaining macOS overlay/settings suites: 5 tests passed through Swift Testing.
  • pnpm ios:build passed for the generic iOS Simulator after installing the repository-pinned, checksum-verified XcodeGen into a temporary tool directory.
  • node scripts/check-changed.mjs -- <changed paths> passed. No Crabbox/Testbox provider was ready, so the documented trusted-source local fallback ran UI typecheck/lint/i18n, app lint, macOS CI tests, formatting, dead-export checks, and the native schema guard.
  • git diff --check passed.
  • Fresh structured autoreview reported no accepted/actionable findings before commit; the rebased branch review also passed.

Production delta: -2 lines. Tests: +3/-132, net -129. Total: +3/-134, net -131. No behavior, docs, config, schema, protocol, dependency, or changelog change.

AI-assisted: yes.

@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.

@steipete
steipete marked this pull request as ready for review August 15, 2026 10:46
@steipete steipete self-assigned this Aug 15, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: ios App: ios app: macos App: macos app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 15, 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 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, 7:03 AM ET / 11:03 UTC.

ClawSweeper review

What this changes

The PR removes redundant UI and native smoke tests and deletes an unused question-panel clock option from the chat composer path.

Merge readiness

✅ Ready for maintainer review

No blocking findings. This maintainer-owned cleanup preserves stronger owner-boundary coverage; likely related person: steipete (high confidence from current-area history).

Priority: P3
Reviewed head: 3d1918e7521c5b9f8e3e7db85706e823ef2a4e58

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and retained owner-boundary coverage supports the cleanup.
Proof confidence 🌊 off-meta tidepool Not applicable: This repository-member cleanup PR is exempt from the external-contributor real-behavior-proof gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This repository-member cleanup PR is exempt from the external-contributor real-behavior-proof gate.
Evidence reviewed 5 items Dashboard owner coverage: Current main injects a board-widget failure, clicks the dashboard pin action, and asserts a redacted retryable toast, enabled button, and absent internal error text.
Settings registry coverage: The settings-target suite exhaustively maps curated sections to one rendering page and verifies the complete registry set, covering the inventories removed from the page-level test.
Unused question-panel option: The inspected property builder does not read the removed clock option; the branch removes its type field, sole composer caller, and test-only arguments.
Findings None None.
Security None None.

How this fits together

Control UI turns gateway prompts into chat controls and supports dashboard pin actions, while the native apps host their own settings and overlay views. The patch narrows test coverage to the browser flows, registries, and native regressions that own those behaviors.

flowchart LR
  Gateway[Gateway question prompt] --> Composer[Chat composer]
  Composer --> Panel[Question panel]
  Canvas[Canvas pin action] --> Dashboard[Dashboard browser flow]
  Registry[Settings target registry] --> Settings[Settings pages]
  Native[Native overlay and settings] --> NativeTests[Focused native regressions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -2, Tests -100, Other -29. Total -131 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 2 0 2 -2
Tests 4 3 103 -100
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 0 29 -29
Total 9 3 134 -131

Review metrics

Metric Value Why it matters
Production versus test LOC production -2; tests +3/-132 (net -129) The production change removes an unused options field and its caller; the rest reduces test-only surface.

Technical review

Best possible solution:

Keep the browser, registry, and native lifecycle tests that own observable contracts while removing construction-only checks and the unused production option.

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

Not applicable: this PR removes test residue rather than repairing a reported runtime failure.

Is this the best way to solve the issue?

Yes. The retained dashboard browser flow and settings-target registry preserve the deleted behavior assertions, and the removed option has no production read.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is low-risk test-maintenance cleanup with no intended user-visible behavior change.
  • 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 repository-member cleanup PR is exempt from the external-contributor real-behavior-proof gate.

Evidence

What I checked:

Likely related people:

  • steipete: Current-main blame across the command, settings registry, browser dashboard path, and native test owners points to recent work by steipete, who also authored this cleanup. (role: recent area contributor; confidence: high; commits: 55adb60bc90c, 3d1918e7521c; files: ui/src/lib/chat/commands.ts, ui/src/pages/config/config-sections.ts, ui/src/e2e/session-dashboard.e2e.test.ts)

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 (1 earlier review cycle)
  • reviewed 2026-08-15T10:56:55.501Z sha 3d1918e :: needs maintainer review before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for 3d1918e7521c5b9f8e3e7db85706e823ef2a4e58:

  • Focused Control UI owners plus the Canvas session-dashboard browser flow: 6 files, 101 tests passed.
  • pnpm ui:build passed, including finalized sidecar and performance checks.
  • Remaining macOS overlay/settings suites: 5 tests passed through Swift Testing.
  • pnpm ios:build passed for the generic iOS Simulator with the repository-pinned, checksum-verified XcodeGen installed in a temporary tool directory.
  • The coreTests, ui, and apps changed gate passed through the documented trusted-source local fallback because no Crabbox/Testbox provider was ready; UI typecheck/lint/i18n, app lint, macOS CI tests, formatting, dead-export checks, and native schema guard passed.
  • git diff --check passed.
  • Fresh structured autoreview reported no accepted/actionable findings on the final branch.
  • Exact-head hosted CI passed: https://github.com/openclaw/openclaw/actions/runs/31880369912
  • Native OPENCLAW_TESTBOX=1 scripts/pr prepare-run 124152 passed, reusing hosted exact-head gates; no Testbox lease was required.
  • ClawSweeper has no findings or rank-up moves and confirms the retained browser/registry owner coverage: refactor: remove UI and native test residue #124152 (comment)

Production delta: -2. Tests: +3/-132, net -129. Total: +3/-134, net -131. No behavior, docs, config, schema, protocol, dependency, or changelog change.

@steipete
steipete merged commit f916e69 into main Aug 15, 2026
219 of 223 checks passed
@steipete
steipete deleted the test/remove-ui-native-test-residue branch August 15, 2026 11:08
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios app: macos App: macos 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: S 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