mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-22 18:11:14 +00:00
* fix(memory-core): clear pending-update wait timer after update settles * test(memory-core): wrap setImmediate Promise executor in block body `oxlint(no-promise-executor-return)` (enabled in the bundled-extension config used by `pnpm lint:extensions:bundled` /`check-lint` / `check-additional-extension-bundled`) flags the implicit return from `new Promise((resolve) => setImmediate(resolve))`. The arrow function is expression-bodied and returns the Immediate handle, which the rule treats as a return inside a Promise executor. Switch both occurrences in the regression guard to block bodies so the executor callback does not return a value. Behavior is unchanged: setImmediate still fires resolve on the next macrotask; the regression assertion (process.getActiveResourcesInfo() delta) still passes. * test(memory-core): track pending wait timer cleanup * refactor(memory-core): keep timer cleanup LOC-neutral --------- Co-authored-by: Peter Steinberger <steipete@gmail.com> Co-authored-by: Peter Steinberger <peter@steipete.me>