These notes describe the patch used to make Codex Mobile discover the unofficial Linux desktop port from https://github.com/ilysenko/codex-desktop-linux.
Important
You do not need to patch the Electron app to connect Codex Mobile to Codex Desktop. You can enable the bridge by adding these feature flags to the Codex config file, usually $HOME/.codex/config.toml:
[features]
remote_connections = true