Skip to content

feat(sandbox): Watchdog heartbeat and auto-recovery (#303) - #309

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/303-sandbox-watchdog
Jul 10, 2026
Merged

feat(sandbox): Watchdog heartbeat and auto-recovery (#303)#309
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/303-sandbox-watchdog

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Add SandboxWatchdog — periodic system.ping (default 30s), 5s pong timeout → deadlock + SIGKILL, clean timer/RPC/exit-subscription teardown on stop()
  • Add SandboxAutoRecovery — exponential backoff 1s → 2s → 4s, max 3 failures per 5 minutes, success resets the window
  • Unit tests cover backoff schedule, deadlock kill, unexpected exit, and clean stop

Closes #303

Test plan

  • flutter test test/core/extensions/sandbox/
  • CI analyze

Monitor sandboxed plugins with system.ping every 30s, SIGKILL on 5s
pong timeout, and exponential restart backoff (issue #303).
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 0ce5a9d into dev Jul 10, 2026
4 checks passed
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jul 12, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/303-sandbox-watchdog branch July 26, 2026 14:39
ZhuchkaTriplesix added a commit that referenced this pull request Jul 27, 2026
feat(sandbox): Watchdog heartbeat and auto-recovery (#303)
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