mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-14 16:07:52 +00:00
A comparison window (Git Log > Compare with Local) of a remote project rides its parent's session: remote_current answers with the parent's connection, so its commands go to the host where the project is open. But the window never opens a project of its own — it keeps only the settings (restoring the project would overwrite the main window's editor session) — and the useProject subscription read every settings update as 'the window left the remote project', dropping the routing. The next commands then ran on the desktop, where no project is open for the window: Git Log > Compare with Local on a WSL project opened an empty comparison window with 'IpcError: no project is open in this window' (same for SSH remote projects). The subscription now only ends the session when the window's project actually leaves the session's root: it had the session's project open and now holds none or another one. Opening a local project, LightEdit and Close Project still end the routing (open_project / light_edit_open / close_project route locally and end it themselves; closeProject keeps the subscription as its safety net).