Skip to content

Fix daemon monitor rule RPC timeouts - #497

Merged
Milhouszhang merged 3 commits into
masterfrom
fix/daemon-monitor-rule-timeouts
Jul 7, 2026
Merged

Fix daemon monitor rule RPC timeouts#497
Milhouszhang merged 3 commits into
masterfrom
fix/daemon-monitor-rule-timeouts

Conversation

@WaldenLee2005

Copy link
Copy Markdown
Collaborator

Summary
Fixes daemon RPC timeouts and tokio runtime-drop panics around monitor rule and task-page workflows.

Changes

  • Moves disk-heavy/session/task/monitor daemon RPC handlers onto detached blocking work so they do not stall the async WebSocket request loop.
  • Updates monitor_rule_add and monitor_rule_delete to persist store changes synchronously, return a lightweight workflow snapshot, and refresh connection consumers on a named background thread.
  • Updates monitor_memory_save to return the same lightweight workflow snapshot instead of doing the heavier full workflow list path.
  • Adds regression coverage for monitor rule add/delete ensuring connection consumers still refresh after the RPC returns.

@WaldenLee2005 WaldenLee2005 self-assigned this Jul 6, 2026
@Milhouszhang
Milhouszhang merged commit 71b4978 into master Jul 7, 2026
5 checks passed
@Milhouszhang
Milhouszhang deleted the fix/daemon-monitor-rule-timeouts branch July 7, 2026 09:14
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.

2 participants