Skip to content

fix(ui): preserve Talk error causes with localized messages - #174200

Merged
steipete merged 1 commit into
mainfrom
ci/fix9-hygiene-20261016
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/fix9-hygiene-20261016

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #174105

What Problem This Solves

Talk microphone and camera failures discard their original browser error to keep native DOMException details out of localized guidance. The refactor in #174105 moved that throw inside its catch and added a suppression, breaking the fixed suppression inventory in main hourly 38894297213.

User Impact

The same localized guidance remains visible, and the original browser failure is retained as the error cause. No strings, layout, device-selection, or cancellation behavior changes.

Why This Change Was Made

The existing UI error formatter now recognizes a small UserFacingError type whose message is already complete presentation text. Talk uses it with the native cause. Ordinary errors keep their existing cause traversal; explicit user-facing messages still pass through the existing redactor and fallback behavior. The caught error is preserved, and all suppression inventories and assertion baselines stay unchanged.

Production grows by eight lines to distinguish complete UI text from diagnostic detail; tests grow by nineteen net lines.

Evidence

  • Before: the existing suppression test reports 95 entries against 94. The camera boundary regression fails because the translated error has no cause (6.43 s).
  • After: all 41 focused cases pass across the unchanged suppression inventory, error formatting/redaction, Talk input, and WebRTC camera lifecycle (20.55 s, pnpm test --maxWorkers=1).
  • UI build passed (20.63 s), including startup/chunk budgets. UI production typecheck passed (53.92 s).
  • Isolated P2 review: scoped-clean; no actionable findings.
  • UI chat and other test typechecks passed (275.92 s and 81.58 s, including declaration preparation).
  • Type-aware lint, boundary lint, formatting, full architecture checks, and the assertion-safety ratchet passed. The first lint run caught a shadowed variable in the new test; the local rename, affected test, and lint were verified. Production code is unchanged from the clean P2 review.
  • Existing assertions and cases are retained. The only added cases cover complete UI text/redaction while preserving a diagnostic cause.

The two full-tree deadcode findings are inherited and separately fixed by active PRs #174173 (renderActivityGroup) and #174181 (proofCapture); both diffs and bodies were inspected. Production and script export scans and unused-file scans pass. The hourly assertion-safety failure was stale shrink debt from 9b9933e, already fixed by d8a406e (#174112); the current ratchet passes without an allowance increase.

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

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 16, 2026 12:12
@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-16T12:16:40.167637Z fd6abdb Draft marked ready
ℹ️ 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.

@steipete
steipete merged commit ce4b8d6 into main Oct 16, 2026
136 of 138 checks passed
@steipete
steipete deleted the ci/fix9-hygiene-20261016 branch October 16, 2026 12:25
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant