Skip to content

fix(ipc): add missing get_uncommitted_file_diffs to preload allowlist#106

Merged
johannesjo merged 1 commit into
johannesjo:mainfrom
FourWindff:fix/uncommitted-file-diffs-ipc-channel
May 8, 2026
Merged

fix(ipc): add missing get_uncommitted_file_diffs to preload allowlist#106
johannesjo merged 1 commit into
johannesjo:mainfrom
FourWindff:fix/uncommitted-file-diffs-ipc-channel

Conversation

@FourWindff
Copy link
Copy Markdown
Contributor

@FourWindff FourWindff commented May 8, 2026

Summary

Fixes get_uncommitted_file_diffs IPC channel being rejected by the preload allowlist. The handler existed on the main process side, but the channel name was missing from ALLOWED_CHANNELS in electron/preload.cjs, so any frontend call was blocked before reaching the backend and uncommitted file diffs could not be loaded.

Adds 'get_uncommitted_file_diffs' to the allowlist, alongside the other git diff channels (get_commit_diffs, get_commit_changed_files, etc.).

Changes

  • electron/preload.cjs: add 'get_uncommitted_file_diffs' to ALLOWED_CHANNELS

@johannesjo
Copy link
Copy Markdown
Owner

Thank you very much! <3

@johannesjo johannesjo merged commit 7aaf640 into johannesjo:main May 8, 2026
2 checks passed
@FourWindff FourWindff deleted the fix/uncommitted-file-diffs-ipc-channel branch May 8, 2026 16:39
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