Skip to content

fix: restart crashed LocalProcess ExtHost instead of killing all hosts#518

Merged
j4rviscmd merged 3 commits into
mainfrom
feat/exthost-restart
May 10, 2026
Merged

fix: restart crashed LocalProcess ExtHost instead of killing all hosts#518
j4rviscmd merged 3 commits into
mainfrom
feat/exthost-restart

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

  • Override _onExtensionHostCrashed in TauriExtensionService to restart only the crashed LocalProcess extension host instead of calling _doStopExtensionHosts() which kills all hosts
  • Add rate limiting (max 3 restarts within 60s) with user notifications and fallback to full stop
  • Delegate non-LocalProcess crash handling to the base class via super._onExtensionHostCrashed()
  • Change 4 members in AbstractExtensionService from private to protected to enable subclass access

Test plan

  • Start the app and verify extensions load normally
  • Trigger an ExtHost crash (e.g., via MCP Bridge port conflict) and confirm only the crashed host restarts
  • Verify that after 3 crashes within 60s, all hosts are stopped with an error notification
  • Verify Remote extension host crashes still delegate to base class behavior

🤖 Generated with Claude Code

j4rviscmd and others added 3 commits May 11, 2026 00:43
Override _onExtensionHostCrashed in TauriExtensionService to restart only
the crashed LocalProcess extension host rather than stopping all hosts via
_doStopExtensionHosts(). This prevents a single extension host crash from
cascading into a full extension system shutdown.

Includes rate limiting (max 3 restarts within 60s) with user notifications,
and delegates non-LocalProcess crash handling to the base class via super.

Also change 4 members in AbstractExtensionService from private to protected
to enable subclass access for the restart logic.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Convert tab indentation to 2-space indentation to satisfy the
@stylistic/ts/indent ESLint rule used in CI.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@j4rviscmd j4rviscmd merged commit 3548475 into main May 10, 2026
7 checks passed
@j4rviscmd j4rviscmd deleted the feat/exthost-restart branch May 10, 2026 16:02
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