Skip to content

fix(ci): keep config proof capture helper private - #174181

Merged
steipete merged 1 commit into
mainfrom
solid2/hf-proof-capture-deadcode-388879
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/hf-proof-capture-deadcode-388879

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the unused-export check after the config/composer E2E fixtures were consolidated.

User Impact

There is no user-visible change. The existing screenshot capture helper and its caller stay intact.

Why This Change Was Made

proofCapture is used only by configProof in the same module. Making it private removes the unused exported surface without changing capture behavior or adding a deadcode exception.

Evidence

Check Result
Source references One caller, in the same module; no external imports
pnpm tsgo:ui Passed
Targeted lint/format Passed
pnpm deadcode:exports Production and script scans passed; full-tree scan reports only the pre-existing renderActivityGroup, fixed separately by #174173. proofCapture is no longer reported.
Independent review Scoped clean through P2

Support LOC: 145 before / 145 after; production LOC unchanged. No build or screenshots are needed because this only removes an export keyword from test support. Local E2E was not run.

CI 38895845229 completed: all selected UI unit and E2E jobs and security-fast passed. The only failed job was the inherited assertion-safety baseline (src/media/media-facts.ts: 14 < 16), plus the downstream CI gate. The failing source, baseline, and checker are identical between CI's base and tested merge; this PR changes only the fixture export. Native inherited-failure evidence records the exact run and checkout.

@clawsweeper

clawsweeper Bot commented Oct 16, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T11:46:38.886384Z 38d3920 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes the screenshot capture helper private while preserving its existing caller and behavior.

Example: The full-tree unused-export scan examines proofCapture.

  • Before: proofCapture is exported despite having only an internal caller.
  • After: proofCapture remains available to configProof without exposing an unused export.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, correct maintenance patch with passing relevant checks; inherited baseline failures still block the aggregate gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored test-support visibility cleanup changes no shipped behavior; source inspection confirms the capture implementation and caller remain intact.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: An unnecessary test-support export violates the repository's unused-export gate.
Reason: The maintainer-authored direction is narrow, removes unused surface, and preserves the existing fixture owner and behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this is a correct, focused cleanup that current main still needs; no introduced defects were found.

Priority: P3
Reviewed head: 38d3920d2c91c9d54a5bac64dbe58698af5c562e

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI E2E tests call configProof, which configures optional screenshot capture through a module-local helper and writes proof artifacts.

flowchart LR
  A[Config E2E tests] --> B[configProof]
  B --> C[Private proofCapture]
  C --> D[Playwright screenshot]
  D --> E[Proof artifacts]
Loading

Technical review

Best possible solution:

Retain the private helper change and handle inherited CI failures through the native landing workflow.

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

Source confirms the unused export and its sole internal caller; the existing full-tree audit explicitly checks test-support exports.

Is this the best way to solve the issue?

Removing the export keyword is the smallest complete repair and preserves screenshot capture without adding an audit exception.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Config proof capture fixture keeps the original intent (ef116dc: Consolidate repeated config/composer E2E fixture setup without changing production behavior.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit ef116dc adds ui/src/e2e/config-composer-fixtures.test-support.ts:33 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ef116dcdfd02; files: ui/src/e2e/config-composer-fixtures.test-support.ts)

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Labels

Label changes:

  • add P3: This removes an unused test-support export without changing production behavior.
  • 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.

Label justifications:

  • P3: This removes an unused test-support export without changing production behavior.
  • 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.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 16, 2026, 8:02 AM ET / 12:02 UTC.

@steipete
steipete merged commit 75b81b5 into main Oct 16, 2026
115 of 118 checks passed
@steipete
steipete deleted the solid2/hf-proof-capture-deadcode-388879 branch October 16, 2026 12:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

steipete added a commit that referenced this pull request Oct 16, 2026
The Talk media-owner refactor in 19a4ee3 (#174105) kept dropping
DOMException causes so the UI formatter would not append native details
to translated guidance. Moving that throw inside catch required a new
preserve-caught-error suppression and broke the fixed inventory on main.

Add UserFacingError to the existing UI formatter owner: its message is
complete presentation text, still redacted, while its cause is retained
for diagnostics. Talk supplies the native cause. Ordinary Error formatting,
localized messages, cancellation, and device selection remain unchanged.
Remove the suppression without changing any allowlist or ratchet baseline.

The camera boundary regression fails before the fix because cause is
undefined (6.43s). All 41 focused tests pass (20.55s), with the existing
assertions retained; corrected input test passes again (3.37s). UI build,
production and test types, type-aware/boundary lint, formatting, full
architecture checks, assertion safety, and isolated P2 review pass.

The two unrelated full-tree deadcode findings are covered by #174173 and
#174181. The earlier media-facts assertion allowance was already corrected
by d8a406e; this commit changes no baseline.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…#174200)

The Talk media-owner refactor in a4fdc0c (openclaw#174105) kept dropping
DOMException causes so the UI formatter would not append native details
to translated guidance. Moving that throw inside catch required a new
preserve-caught-error suppression and broke the fixed inventory on main.

Add UserFacingError to the existing UI formatter owner: its message is
complete presentation text, still redacted, while its cause is retained
for diagnostics. Talk supplies the native cause. Ordinary Error formatting,
localized messages, cancellation, and device selection remain unchanged.
Remove the suppression without changing any allowlist or ratchet baseline.

The camera boundary regression fails before the fix because cause is
undefined (6.43s). All 41 focused tests pass (20.55s), with the existing
assertions retained; corrected input test passes again (3.37s). UI build,
production and test types, type-aware/boundary lint, formatting, full
architecture checks, assertion safety, and isolated P2 review pass.

The two unrelated full-tree deadcode findings are covered by openclaw#174173 and
openclaw#174181. The earlier media-facts assertion allowance was already corrected
by ac578b3; this commit changes no baseline.
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 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