Repository navigation
fix: unblock lint checks after warm-reload benchmarking - #173680
Conversation
The benchmark probe added in ffcb0a8 (#173266) captured the native IndexedDB get method under an unbound-method suppression, growing the production suppression inventory. Give the captured method and its wrapper explicit IDBObjectStore receivers. Keep prototype-wide interception and get.apply(this, args), so every store retains its own request and result. The allowlist and existing assertions are unchanged. No application or update behavior changes. pnpm test test/scripts/lint-suppressions.test.ts --maxWorkers=1: 3 passed, 14.14s command wall (12.02s file). Reused the prior failing proof because both the probe and ratchet source blobs are identical on this base. The only importer is bench-control-ui-cold-load.ts; no importing tests. Its actual serialized probe passed isolated jsdom/fake-indexeddb proof of two stores, four reads, hits/misses, key ranges, request sources and results, and captured cache-read records. Full browser benchmark was not run. Scripts types, erasability, type-aware/boundary lint, format, and independent P2 review passed. check-changed passed its other gates; scripts Knip was clean, while production/full scans retain two unrelated lazy-view-error exports (renderLazyElementState and renderLazyViewError). No export/import or baseline exceptions changed.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces an IndexedDB lint suppression with explicit receiver types in the warm-reload benchmark probe. Example: Run the production lint-suppression inventory after the warm-reload probe was added.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR fixes a concrete suppression-inventory failure still present on main; the patch preserves benchmark behavior and introduces no actionable defect. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe opt-in Control UI benchmark serializes this browser probe into its initialization script; IndexedDB reads enter the wrapper and produce unchanged requests plus diagnostic read records. flowchart LR
A[Benchmark CLI] --> B[Browser initialization script]
B --> C[Warm reload probe]
C --> D[Native IndexedDB get]
D --> E[Original request and result]
C --> F[Diagnostic read records]
Technical reviewBest possible solution: Land the focused receiver-contract repair while preserving the suppression allowlist and native IndexedDB forwarding. Do we have a high-confidence way to reproduce the issue? Source establishes the unallowlisted suppression on fetched main and the inventory assertion it violates; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? The patch expresses the native receiver contract without casts, binding to the prototype, widening the allowlist, or changing request handling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 27b01806cb59. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceOther +5. Total +5 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 15, 2026, 11:09 PM ET / October 16, 2026, 03:09 UTC. |
|
Merged via squash.
|
…3680) The benchmark probe added in 2cb93f0 (openclaw#173266) captured the native IndexedDB get method under an unbound-method suppression, growing the production suppression inventory. Give the captured method and its wrapper explicit IDBObjectStore receivers. Keep prototype-wide interception and get.apply(this, args), so every store retains its own request and result. The allowlist and existing assertions are unchanged. No application or update behavior changes. pnpm test test/scripts/lint-suppressions.test.ts --maxWorkers=1: 3 passed, 14.14s command wall (12.02s file). Reused the prior failing proof because both the probe and ratchet source blobs are identical on this base. The only importer is bench-control-ui-cold-load.ts; no importing tests. Its actual serialized probe passed isolated jsdom/fake-indexeddb proof of two stores, four reads, hits/misses, key ranges, request sources and results, and captured cache-read records. Full browser benchmark was not run. Scripts types, erasability, type-aware/boundary lint, format, and independent P2 review passed. check-changed passed its other gates; scripts Knip was clean, while production/full scans retain two unrelated lazy-view-error exports (renderLazyElementState and renderLazyViewError). No export/import or baseline exceptions changed.
What Problem This Solves
Fixes the lint-suppression check failing after the warm-reload benchmark added an unbound-method suppression. Related: #173266.
User Impact
No application or update behavior changes. The opt-in benchmark continues recording IndexedDB reads across every store, preserving original request objects and results.
Why This Change Was Made
Give the captured native
getfunction and its wrapper explicitIDBObjectStorereceivers. Prototype-wide interception andget.apply(this, args)stay intact. The suppression allowlist and existing assertions are unchanged. The five added tooling lines express the receiver contract missing from the native declaration; no new imports, exports, or runtime owner.Simplification pass complete; no additional machinery or test seams are needed. Repeated main updates raced six direct pushes, so this uses native PR landing. No rejected attempt triggered CI.
Evidence
pnpm test test/scripts/lint-suppressions.test.ts --maxWorkers=1: 3 passed; 14.14 seconds command wall, 12.02 seconds file time. Reused the previous exact negative control after verifying that the probe and ratchet source blobs were unchanged.scripts/bench-control-ui-cold-load.ts; no importing tests. Its actual serialized probe passed isolated jsdom plus the existingfake-indexeddbdependency: two stores, four reads, hits/misses, a key-range query, original request sources/results, and cache-read records/milestone. Full browser benchmark was not run.check-changedpassed its other selected gates. Scripts Knip passed with zero entries; production/full scans reported two inherited exports inui/src/components/lazy-view-error.ts:renderLazyElementStateandrenderLazyViewError. No import/export or baseline exceptions changed.