Repository navigation
Closed as not planned
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.Thin issue quality; more reproduction proof or environment detail is needed.maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.Broken existing behavior primarily owned by an M4/M5 scorecard surface.staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Bug Description
Any openclaw config CLI command causes the gateway process to hang at ~98% CPU, blocking all operations. This affects both cold-start and when running the command during normal operation.
Steps to Reproduce
- Run any
openclaw configcommand, e.g.:openclaw config listopenclaw configopenclaw gateway status
- Observe gateway process jumps to 98% CPU and stays there
- All OpenClaw operations are blocked
Expected Behavior
The CLI command should return results within seconds, gateway should remain responsive.
Actual Behavior
Gateway hangs at "loading configuration..." phase at 98% CPU. The hang is observed in logs:
{\"subsystem\":\"gateway\"}{\"1\":\"loading configuration…\"}
Environment
- OpenClaw: 2026.5.19 (a185ca2)
- Node.js: 25.3.0
- Platform: macOS (darwin ARM64)
- Gateway port: 18080
Workaround
Edit ~/.openclaw/openclaw.json directly instead of using openclaw config CLI commands.
Additional Context
Gateway cold boot also shows ~60s of high CPU at "loading configuration…" — may be related root cause.
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.Thin issue quality; more reproduction proof or environment detail is needed.maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.Broken existing behavior primarily owned by an M4/M5 scorecard surface.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon May 21, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 30, 2026, 7:29 PM ET / 23:29 UTC.
Summary
Keep open: current main still routes the reported config and gateway-status surfaces through configuration snapshot, validation, and plugin metadata paths, and I did not find a merged canonical fix or current-main proof that the high-CPU hang is gone.
Reproducibility: no. The report gives clear 2026.5.19 macOS steps and a matching
loading configuration…log phase, but this review did not establish the high-CPU hang on current main.Ways to help us reproduce this
Next step
Needs maintainer or live-lab profiling before repair because the source path is clear but the exact high-CPU loop is not proven.
Review details
Best possible solution:
Profile the reported commands on current main or the latest package in a matching macOS setup, then patch the measured config snapshot, plugin metadata, or gateway-status hotspot without weakening config validation.
Do we have a high-confidence way to reproduce the issue?
No. The report gives clear 2026.5.19 macOS steps and a matching
loading configuration…log phase, but this review did not establish the high-CPU hang on current main.Is this the best way to solve the issue?
Unclear. There is no patch yet, and the safest fix should follow a live profile rather than guessing between config IO, plugin metadata scanning, shell env fallback, or macOS service context.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 3811001d2783.
Label changes
Label changes:
maturity:stable: The affected Gateway runtime and CLI surfaces are M4 Stable inqa/maturity-scores.yaml.issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.clawsweeper:needs-info: Current issue advisory state selects this label.clawsweeper:needs-live-repro: Current issue advisory state no longer selects this label.issue-rating: 🐚 platinum hermit: Current issue advisory state no longer selects this label.Label justifications:
P1: The report describes a gateway/config workflow that can saturate CPU and block all OpenClaw operations.impact:crash-loop: The issue is about gateway process availability: a hang or sustained CPU saturation during configuration loading.maturity:stable: The affected Gateway runtime and CLI surfaces are M4 Stable inqa/maturity-scores.yaml.Evidence reviewed
Acceptance criteria:
openclaw config get gateway.port,openclaw config validate, andopenclaw gateway statuson current main or the latest package in a matching macOS setup.src/cli/config-cli.test.ts,src/cli/daemon-cli/status.gather.test.ts,src/gateway/server-startup-config.recovery.test.ts, and plugin metadata snapshot coverage as applicable.What I checked:
AGENTS.md:12, 3811001d2783)src/gateway/AGENTS.md:1, 3811001d2783)config getcallsloadValidConfig, whileconfig validatecallsreadConfigFileSnapshot, so the reported CLI commands still exercise config snapshot IO on current main. (src/cli/config-cli.ts:2429, 3811001d2783)validateConfigObjectWithPlugins, keeping the suspected plugin metadata/config validation path relevant. (src/config/io.ts:1987, 3811001d2783)loading configuration…immediately beforereadGatewayStartupConfigWithShellEnv, matching the phase named in the report. (src/cli/gateway-cli/run.ts:642, 3811001d2783)Likely related people:
src/config/io.ts,src/plugins/plugin-metadata-snapshot.ts)loading configuration…log. (role: recent gateway startup contributor; confidence: medium; commits: df521a645977; files:src/cli/gateway-cli/run.ts,src/config/io.ts)src/plugins/plugin-metadata-snapshot.ts,src/plugins/plugin-metadata-snapshot.memo.test.ts)src/cli/gateway-cli/run.ts,src/config/io.ts,src/cli/daemon-cli/status.gather.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.JulyanXu commentedon May 22, 2026
High-impact issue — gateway CPU saturation from config commands blocks all operations.
Observation: The hang occurs at "loading configuration…" with 98% CPU, which points to a tight loop or infinite recursion in the config loading path, not a blocking I/O wait.
Possible root causes:
Circular config reference — If the config file contains a circular reference (e.g., an
extendsor$refthat loops back), the loader could spin. The 60s cold-boot delay is also consistent with this — the loader eventually times out or resolves the cycle.Large config file parsing — If
openclaw.jsonhas grown very large (many agents, cron jobs, channel bindings), the JSON parsing + schema validation could be CPU-intensive. But 98% sustained CPU suggests something worse than just large-file parsing.Hot-reload loop — If the gateway watches the config file and the
configCLI command triggers a file change that causes a reload that triggers another change, this would create an infinite reload loop.Diagnosis steps for the reporter:
If the config file is very large (>1MB), the issue may be schema validation overhead. If it contains circular references, the loader needs cycle detection.
The workaround of editing the file directly confirms the config loading/parsing path is the bottleneck, not the actual config values.
openclaw-barnacle commentedon Jul 15, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 22, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.