feat(cli): attach terminal clients to the selected Desktop [skip ci]
NAN-104 requires terminal chat and browser attachment without granting a client ownership of Desktop's gateway. Resolve bounded short-lived credentials over authenticated current-user IPC, pin both Desktop and gateway identities, and reject replacement instances or incompatible clients before any mutation. Reuse the existing TUI artifact resolver behind a narrow Desktop-only entrypoint, keep credentials out of argv/environment/files, and preserve Python-mode reconnect and gateway leases. Add protocol, real-gateway, and anonymous IPC regression coverage; matching native-host and Windows acceptance remain release gates.
This commit is contained in:
1 parent
b373a95f5c
commit
48e7c4f697
20 files changed
+797
-52
No files matched your search
@@ -809,6 +809,9 @@ class WebSocketChannel(BaseChannel):
|
||||
"event": "ready",
|
||||
"chat_id": default_chat_id,
|
||||
"client_id": client_id,
|
||||
**({"terminal": {
|
||||
"protocolVersion": 1, "gatewayId": self.gateway.tokens.instance_id,
|
||||
}} if _query_first(query, "terminal_protocol") == "1" else {}),
|
||||
},
|
||||
ensure_ascii=False,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user