Skip to content

fix: core stability and performance issues#934

Closed
ronak-guliani wants to merge 50 commits intoopenclaw:mainfrom
ronak-guliani:fix/core-stability-perf
Closed

fix: core stability and performance issues#934
ronak-guliani wants to merge 50 commits intoopenclaw:mainfrom
ronak-guliani:fix/core-stability-perf

Conversation

@ronak-guliani
Copy link
Copy Markdown
Contributor

Summary

Fixes 4 critical/high priority issues identified during code review.

  1. Session Store Mutability: Prevents side effects from modifying cached session objects by returning deep copies (using structuredClone).
  2. Heartbeat Timestamp Regression: Ensures updatedAt timestamps are monotonic to prevent overwriting newer activity with older heartbeat timestamps.
  3. Agent Context Leak: Adds a finally block to agentCommand to ensure clearAgentRunContext is called, preventing unbounded memory growth in long-running processes.
  4. Update Runner Robustness: Tightens validation for the workspace root in update-runner by requiring lockfiles, preventing execution in incorrect parent directories.

ClawdBot Updater added 20 commits January 11, 2026 20:05
- Fix session store mutability by using structuredClone in cache and load
- Fix heartbeat timestamp regression by ensuring monotonic updates
- Fix agent context memory leak by ensuring clearAgentRunContext is called
- Fix update runner to strictly validate workspace root via lockfiles
@steipete steipete self-assigned this Jan 15, 2026
@steipete
Copy link
Copy Markdown
Contributor

Re-implemented minimal subset (no ops): session store deep clone, heartbeat updatedAt monotonic restore, agent run context cleanup + tests; added changelog + clawtributor. Landed as 1c96477.

@steipete steipete closed this Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants