mirror of
https://github.com/stablyai/orca.git
synced 2026-09-27 16:02:35 +00:00
fix(terminals): negotiate explicit close intent for paired runtimes (#10129)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { parseAuthenticatedFrame, parseReadyFrame } from './remote-runtime-request-frames'
|
||||
import type { RemoteRuntimeClientError } from './remote-runtime-client-error'
|
||||
import { SESSION_TAB_CLOSE_INTENT_RUNTIME_CAPABILITY } from './protocol-version'
|
||||
import { dispatchSharedControlFrame } from './remote-runtime-shared-control-frame-dispatch'
|
||||
import { parseSharedControlFrame } from './remote-runtime-shared-control-protocol'
|
||||
import { resolveSharedControlReadyWaiters } from './remote-runtime-shared-control-state'
|
||||
@@ -32,7 +33,11 @@ export function handleSharedControlTextFrame(args: {
|
||||
return
|
||||
}
|
||||
args.setState('awaiting_authenticated')
|
||||
args.sendEncrypted({ type: 'e2ee_auth', deviceToken: args.deviceToken })
|
||||
args.sendEncrypted({
|
||||
type: 'e2ee_auth',
|
||||
deviceToken: args.deviceToken,
|
||||
clientCapabilities: [SESSION_TAB_CLOSE_INTENT_RUNTIME_CAPABILITY]
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user