Skip to content

fix(sandbox): prevent false-positive SIGKILL in SandboxWatchdog during heavy RPC - #529

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/526-sandbox-watchdog-busy-aware
Jul 29, 2026
Merged

fix(sandbox): prevent false-positive SIGKILL in SandboxWatchdog during heavy RPC#529
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/526-sandbox-watchdog-busy-aware

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #526

Summary of Changes

  • Added hasPendingRequests and pendingRequestCount to JsonRpcStdioClient.
  • Added isBusy callback capability to SandboxWatchdog, skipping heartbeats when the plugin is busy executing RPC requests.
  • Passed isBusy: () => client.hasPendingRequests from PluginRpcBridge into SandboxWatchdog.
  • Increased default pongTimeout from 5s to 15s.
  • Added unit tests for isBusy handling in test/core/extensions/sandbox/sandbox_watchdog_test.dart.

Verification

  • flutter test test/core/extensions/sandbox/sandbox_watchdog_test.dart passed (10/10 tests).

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit c670940 into dev Jul 29, 2026
4 checks passed
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jul 29, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/526-sandbox-watchdog-busy-aware branch July 30, 2026 07:24
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.

1 participant