openclaw - 💡(How to fix) Fix Performance: openclaw security audit --deep can stall silently ~9min due to serial skills/plugins code-safety scans [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

openclaw security audit --deep can spend a long silent window (observed ~548s) and often gets killed by caller-level timeout (e.g. 120s -> SIGKILL/exit 137) when workspace has many skills/plugins files.

From source + runtime evidence, the main bottleneck appears to be deep code-safety collectors scanning multiple directories serially.

Error Message

  • Long period of no output while audit still running.
  • One successful run completed only after ~548s and then printed summary.
  • Earlier runs with external timeout 120s were killed (SIGKILL), resulting in no usable output.
  • Memory pressure was normal during incident (free ~92%, swapins/swapouts 0), so this does not look like OOM.

Root Cause

  • Deep audit appears "hung" to users due to long silence.
  • External wrappers/CI jobs often have 120s~300s timeouts and kill the process before summary.
  • Failure mode is misleading as SIGKILL appears like system issue while root cause is audit throughput.

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Summary

openclaw security audit --deep can spend a long silent window (observed ~548s) and often gets killed by caller-level timeout (e.g. 120s -> SIGKILL/exit 137) when workspace has many skills/plugins files.

From source + runtime evidence, the main bottleneck appears to be deep code-safety collectors scanning multiple directories serially.

Environment

  • OpenClaw version: 2026.4.29 (a448042)
  • Runtime: macOS 26.4.1, Node 25.6.1
  • Command: openclaw security audit --deep

Observed behavior

  • Long period of no output while audit still running.
  • One successful run completed only after ~548s and then printed summary.
  • Earlier runs with external timeout 120s were killed (SIGKILL), resulting in no usable output.
  • Memory pressure was normal during incident (free ~92%, swapins/swapouts 0), so this does not look like OOM.

Source-level evidence

  • Deep path includes code-safety collectors for plugins/installed skills.
  • Those collectors call scanner directory routines that iterate files serially:
    • scanDirectoryWithSummary(...)
    • for (const file of files) { await scanFileWithCache(...) }
  • Scanner defaults are currently:
    • DEFAULT_MAX_SCAN_FILES = 500
    • DEFAULT_MAX_FILE_BYTES = 1024 * 1024
  • Directory walk is performed by walkDirWithLimit(...).

In local check with many files across skills/plugin dirs (~1435 files across relevant roots), this accumulates into long wall-clock time.

Why this hurts

  • Deep audit appears "hung" to users due to long silence.
  • External wrappers/CI jobs often have 120s~300s timeouts and kill the process before summary.
  • Failure mode is misleading as SIGKILL appears like system issue while root cause is audit throughput.

Requested improvements

  1. Controlled parallelism for code-safety file scanning (worker pool / concurrency limit).
  2. Incremental scan using mtime/hash cache persisted between runs.
  3. Progress output during deep audit (collector start/end, files scanned, elapsed).
  4. Per-collector timing breakdown in output/report for quick hotspot identification.
  5. Configurable limits/timeouts per collector (not only global behavior).
  6. Optional: --deep --only <collector> / split deep profile to make heavy checks schedulable.

Repro sketch

  1. Install OpenClaw with many skill/plugin sources present.
  2. Run:
    • openclaw security audit --deep
  3. Observe long silent window; with caller timeout 120s this frequently ends as SIGKILL before report.

Additional note

I also checked latest stable 2026.5.7 package scanner bundle; this serial scan pattern and defaults appear unchanged, so issue likely still reproducible.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Performance: openclaw security audit --deep can stall silently ~9min due to serial skills/plugins code-safety scans [1 pull requests]