Skip to content

fix(ui): keep the chat permission card implementation private - #170680

Merged
steipete merged 2 commits into
mainfrom
dbasync/redmain-permission-card-private
Oct 13, 2026
Merged

steipete merged 2 commits into
mainfrom
dbasync/redmain-permission-card-private

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The production Knip export scan rejects ChatPermissionCard, introduced by #169635. Production renders the component through its registered bridge; only the test imported the component directly.

Keep the component private and exercise all 12 existing permission scenarios through the same bridge used by chat. Permission policy, observed-grant requirements, stale-node rejection, and every existing assertion remain intact. No visual or runtime behavior changes.

Evidence

Ordinary CI 38351688740 completed with 28 successful and 26 skipped jobs. All 12 permission-card cases passed (module 0.235 seconds; UI shard 246.71 seconds). Types, lint, architecture and ratchets passed; T1 live 454→454, compatibility 9→9, dialect 0→0. One Codex review found no actionable issues; changed-file format/lint and git diff --check pass. No local tests or broad scans ran under compute conservation.

Supplemental export scan 38352134638 passed production and full-tree exports with zero findings. Its script scan failed on scripts/lib/vitest-report-capture.mts: default, inherited from main: reporter, CLI owner and script Knip config are byte-identical on this head and main 2f9a3ccc0c5ddb951282aabbfe2dd110c8fa28b2. The default is required by Vitest's path-loaded reporter contract. A separate owned repair declares that real consumer; deleting the export would break reporting. This supplemental run is not claimed green.

Two files: production +1/−1; tests +47/−27. No SQLite access, schema, or security-check changes, SQL/request savings claim, or SQL harness run. The exact-head security review and aggregate openclaw/ci-gate also passed.

Production renders permission cards through the registered bridge. Remove the unused component export and exercise the existing permission scenarios through that same entry point.
@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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-13T05:32:39.292334Z 02585e2 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.

@steipete
steipete merged commit 9a15afc into main Oct 13, 2026
103 of 106 checks passed
@steipete
steipete deleted the dbasync/redmain-permission-card-private branch October 13, 2026 05:44
steipete added a commit that referenced this pull request Oct 13, 2026
The Vitest 5 migration loads its report-capture constructor through a
CLI file path, which the script export scan cannot resolve. Register
that existing reporter path with a literal lazy import in the redacting
loader, preserving the constructor, options and forwarding lifecycle.

No Knip ignore, eager loading, test suppression or user-visible change.
The original Solid leftovers are covered by #170660; #170680 owns the
separate permission-card export repair.
steipete added a commit that referenced this pull request Oct 13, 2026
* fix(test): expose lazy report capture to export analysis

The Vitest 5 migration loads its report-capture constructor through a
CLI file path, which the script export scan cannot resolve. Register
that existing reporter path with a literal lazy import in the redacting
loader, preserving the constructor, options and forwarding lifecycle.

No Knip ignore, eager loading, test suppression or user-visible change.
The original Solid leftovers are covered by #170660; #170680 owns the
separate permission-card export repair.

* test(tooling): register Bun SQLite regression fixture

#170519's Bun existing-store regression launches this source helper by
path. Register that exact execution entry in the full-tree Knip audit
so its live update-executor regression is retained without an ignore.

The unchanged opt-in Bun regression and deadcode checker tests pass.
No runtime, update behavior, assertions or timeouts change.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…law#170680)

Production renders permission cards through the registered bridge. Remove the unused component export and exercise the existing permission scenarios through that same entry point.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…70701)

* fix(test): expose lazy report capture to export analysis

The Vitest 5 migration loads its report-capture constructor through a
CLI file path, which the script export scan cannot resolve. Register
that existing reporter path with a literal lazy import in the redacting
loader, preserving the constructor, options and forwarding lifecycle.

No Knip ignore, eager loading, test suppression or user-visible change.
The original Solid leftovers are covered by openclaw#170660; openclaw#170680 owns the
separate permission-card export repair.

* test(tooling): register Bun SQLite regression fixture

openclaw#170519's Bun existing-store regression launches this source helper by
path. Register that exact execution entry in the full-tree Knip audit
so its live update-executor regression is retained without an ignore.

The unchanged opt-in Bun regression and deadcode checker tests pass.
No runtime, update behavior, assertions or timeouts change.
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