fix: keep floating tabs local with active runtime

Keep the synthetic floating workspace local while a remote runtime is active, including terminal/browser creation, activation, close, and remote snapshot handling.

Maintainer follow-ups:
- require worktreeId for runtime-session terminal create payloads
- add renderer-backed terminal create reply sender regression coverage
- merge current main and keep the WSL readDir breadcrumb test aligned with main's Windows-only handler coverage
This commit is contained in:
Wolfie
2026-06-30 12:48:26 -07:00
committed by GitHub
parent 01070198fa
commit 62ab2d470e
22 changed files with 535 additions and 268 deletions
+5 -4
View File
@@ -15373,10 +15373,10 @@ export class OrcaRuntimeService {
}, 10_000)
const handler = (
_event: Electron.IpcMainEvent,
event: Electron.IpcMainEvent,
r: { requestId: string; tabId?: string; title?: string; error?: string }
): void => {
if (r.requestId !== requestId) {
if (event.sender !== win.webContents || r.requestId !== requestId) {
return
}
clearTimeout(timer)
@@ -15535,10 +15535,10 @@ export class OrcaRuntimeService {
}, 10_000)
const handler = (
_event: Electron.IpcMainEvent,
event: Electron.IpcMainEvent,
r: { requestId: string; tabId?: string; title?: string; error?: string }
): void => {
if (r.requestId !== requestId) {
if (event.sender !== win.webContents || r.requestId !== requestId) {
return
}
clearTimeout(timer)
@@ -15560,6 +15560,7 @@ export class OrcaRuntimeService {
...(startupCommand.launchConfig ? { launchConfig: startupCommand.launchConfig } : {}),
...(startupCommand.launchAgent ? { launchAgent: startupCommand.launchAgent } : {}),
startupCommandDelivery: startupCommand.startupCommandDelivery,
source: 'runtime-session',
activate: opts.activate
})
})