Repository navigation
fix(matrix): prune finished fake-indexeddb transactions - #90521
sahibzada-allahyar wants to merge 1 commit into
Conversation
…bounded heap growth (openclaw#90455) Matrix E2EE with fake-indexeddb retains finished IndexedDB transactions in the internal Database.transactions array forever, causing unbounded heap growth over time. Add pnpm patch to [email protected] that prunes finished transactions (_state === 'finished') at the top of processTransactions(). Once a transaction commits or aborts, its _state becomes 'finished' and processTransactions never uses it again, so removing it is safe and matches the IndexedDB spec. Add focused regression test covering both commit and abort paths.
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes are blockedOpenClaw does not accept dependency graph changes through PRs unless a repository admin or security explicitly authorizes the current head SHA. Dependency updates are generated internally by maintainers so external PRs cannot change the resolved graph. Detected dependency graph changes:
Auto-scrub was not attempted because this PR also changes dependency-related files that are not package lockfiles:
Please remove lockfile changes manually if they are not needed. To remove lockfile changes, restore them from the target branch: git fetch origin
git checkout 'origin/main' -- 'pnpm-lock.yaml'
git commit -m 'chore: remove dependency lockfile change'
git pushIf this PR intentionally needs a dependency graph change, ask a repository admin or member of The action will approve the current head SHA ( |
|
Dependency Guard context for the patch wiring: The dependency-file diff is intentional and limited to |
|
Codex review: found issues before merge. Reviewed June 4, 2026, 10:54 PM ET / 02:54 UTC. Summary PR surface: Tests +88, Config +1, Other +30. Total +119 across 4 files. Reproducibility: yes. at source/proof level: upstream Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Pick a maintainer-approved dependency path and prove the fixed behavior through an installed Do we have a high-confidence way to reproduce the issue? Yes, at source/proof level: upstream Is this the best way to solve the issue? No, this is only a plausible local fix. The best mergeable solution must either use an authorized dependency path that reaches the published Matrix package or move the cleanup into Matrix-owned runtime code with package-install proof. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against c8bb7330b5cf. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests +88, Config +1, Other +30. Total +119 across 4 files. View PR surface stats
Security concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Closing to reduce my active PR queue under the repository cap. This branch is dependency-guard blocked and should be revisited only if a maintainer wants the dependency-change path. |
Fixes #90455.
What Changed
pnpmpatch for[email protected]so finished transactions are pruned at the start ofprocessTransactions().pnpm-workspace.yamland the lockfile.Real Behavior Proof
Behavior addressed: Matrix E2EE usage with fake-indexeddb can retain finished IndexedDB transactions in the internal transaction array, causing unbounded heap growth over time.
Setup:
/Users/allahyar/Documents/fastino-tasks/openclaw./Users/allahyar/Documents/fastino-tasks/openclaw-tui-90455c.fake-indexeddb/auto, creates a real IndexedDB database, runs five sequential readwrite transactions, then inspects fake-indexeddb's internal_rawDatabase.transactions.length.Before, on current main:
After, on this branch:
Observed result after fix: finished fake-indexeddb transactions no longer remain in the internal transaction array after sequential Matrix-style IndexedDB work.
Verification
Platforms Tested
Limitations