fix(terminals): negotiate explicit close intent for paired runtimes (#10129)
This commit is contained in:
@@ -30,6 +30,7 @@ import {
|
||||
type RemoteRuntimeRequestReadyWaiter
|
||||
} from './remote-runtime-request-ready-waiters'
|
||||
import { openRemoteRuntimeWebSocket } from './remote-runtime-request-websocket'
|
||||
import { SESSION_TAB_CLOSE_INTENT_RUNTIME_CAPABILITY } from './protocol-version'
|
||||
|
||||
type ConnectionState = 'closed' | 'awaiting_ready' | 'awaiting_authenticated' | 'ready'
|
||||
|
||||
@@ -205,7 +206,8 @@ export class RemoteRuntimeRequestConnection {
|
||||
encrypt(
|
||||
serializeRemoteRuntimePayload({
|
||||
type: 'e2ee_auth',
|
||||
deviceToken: this.pairing.deviceToken
|
||||
deviceToken: this.pairing.deviceToken,
|
||||
clientCapabilities: [SESSION_TAB_CLOSE_INTENT_RUNTIME_CAPABILITY]
|
||||
}),
|
||||
sharedKey
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user