Skip to content

electron: use custom oc:// protocol for renderer windows#23516

Merged
Brendonovich merged 2 commits into
devfrom
brendan/electron-renderer-protocol
Apr 21, 2026
Merged

electron: use custom oc:// protocol for renderer windows#23516
Brendonovich merged 2 commits into
devfrom
brendan/electron-renderer-protocol

Conversation

@Brendonovich
Copy link
Copy Markdown
Member

Summary

  • Switch Electron renderer from file:// to a privileged oc://renderer custom protocol
  • Prevents root-relative asset paths from resolving to the filesystem root
  • Adds CORS entry for the custom protocol in local server config
  • Updates test comments to reflect new protocol behavior

@Brendonovich Brendonovich merged commit e5687d6 into dev Apr 21, 2026
7 of 9 checks passed
@Brendonovich Brendonovich deleted the brendan/electron-renderer-protocol branch April 21, 2026 04:36
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant