Skip to content

Conversation

@Dhanush010
Copy link

Problem

When IPC handlers are registered before devtron.install(), they receive wrapped payloads { __uuid__devtron, args } instead of original arguments. This breaks libraries like @bugsnag/electron that register handlers during module initialization.

Solution

Added excludeChannels option to InstallOptions that allows users to specify channels that should be excluded from Devtron's payload wrapping.

Changes

  • Added excludeChannels?: Channel[] to InstallOptions interface
  • Modified renderer to skip wrapping for excluded channels
  • Modified main process to skip unwrapping for excluded channels
  • Set up IPC handler to provide excluded channels to renderer

Usage

await devtron.install({
excludeChannels: ['bugsnag::renderer-to-main', 'bugsnag::renderer-to-main-sync']
});

Testing

  • Verified excluded channels receive original arguments
  • Verified non-excluded channels still work correctly

Fixes #314

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.

IPC handlers registered before devtron.install() receive wrapped payloads instead of original arguments

1 participant