Repository navigation
fix(ui): preserve Talk error causes with localized messages - #174200
Merged
Merged
Conversation
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.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
steipete
marked this pull request as ready for review
October 16, 2026 12:12
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.