Skip to content

test(ui): preserve permission error ownership in chat fixtures - #192822

Merged
steipete merged 4 commits into
mainfrom
fix/ci-permission-fixtures-418379
Nov 4, 2026
Merged

steipete merged 4 commits into
mainfrom
fix/ci-permission-fixtures-418379

Conversation

@steipete

@steipete steipete commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Restores the chat permission regression suites after #192057 moved recoverable errors into the shared chat error owner. Scheduled CI 41837990917 reported 11 failures in these fixtures.

User Impact

No product behavior changes. The tests continue to verify permission recovery, session ownership, and retained diagnostic details.

Why This Change Was Made

Standalone test hosts inherit the real error owner. Fixtures augment that host without dropping its accessors, while copies onto real page state leave the page’s existing owner and subscriptions intact. Independent reload and peer fixtures receive their own error owner. Assertions check the translated summary and original error detail separately, matching the production contract.

The permission controls reuse their existing shared defaults. The complete patch changes 14 test/support files with 64 additions and 68 deletions: four fewer test lines, no allocation, no new cases, and no production seams.

Evidence

  • Original permission reproduction: 11 failures before repair; 217/217 cases pass across the three permission files and nine shared-fixture consumers. Those inputs remain unchanged by the final consumer cutover.
  • The final consumer repair at 13792aae9cd passes 258/258 cases across 19 files (9.17s), including all seven history-subscription failures reported on the preceding head. The exact history-subscription file passes 19/19 on the original base, fails 7/19 on the preceding head, and passes 19/19 after the repair. The final reload-fixture type refinement also passes its 15 cases (1.44s).
  • The staged test-line ratchet passes against 47ff2b9ef1de: net −4 test lines. Focused lint, formatting, and diff checks pass.
  • UI-chat type checking still reports the inherited duplicate closeSessionTitle key in ui/src/i18n/locales/en-terminal.ts:30 (TS1117), outside this patch. The same duplicate exists in the original base at lines 11 and 30; no new type errors remain.
  • Full-context independent review of the final complete patch against 47ff2b9ef1de: no actionable P0–P2 findings. The review includes the shared owners and an audit of remaining plain-data and real-page copies.
  • Corrected-head CI is pending. Earlier-head failures remain recorded as failures; the test-line and history-subscription regressions they exposed are repaired in this head.

Related: #192057. The separate E2E punctuation change is covered by #192424.

@clawsweeper

clawsweeper Bot commented Nov 4, 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.

@steipete
steipete marked this pull request as ready for review November 4, 2026 14:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 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-11-04T15:13:23.547766Z 13792aa New commits
ℹ️ 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 4, 2026
@steipete
steipete merged commit ea2644c into main Nov 4, 2026
83 of 91 checks passed
@steipete
steipete deleted the fix/ci-permission-fixtures-418379 branch November 4, 2026 15:23
@steipete

steipete commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

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

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
…law#192822)

* test(ui): preserve permission error ownership in chat fixtures

* test(ui): retain page error ownership when copying chat fixtures

* test(ui): reuse shared permission controls fixture

* test(ui): preserve error owners in chat fixture consumers
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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant