cleanup: small optimizations

This commit is contained in:
Cristina Poncela Cubeiro
2026-06-22 14:56:41 +02:00
parent d79e3061ad
commit 555ab2e548
5 changed files with 58 additions and 27 deletions
+2 -2
View File
@@ -129,7 +129,7 @@ export async function handleIpcRequest(request: OrchestratorRequest): Promise<Or
}
}
export function attachIpcInstance(
export function openRpcStream(
instanceId: string,
onResponse: (response: RpcResponse) => void,
onSessionEvent: (event: AgentSessionEvent) => void,
@@ -140,7 +140,7 @@ export function attachIpcInstance(
close(): void;
}
| undefined {
const handle = supervisor.attachInstance(instanceId, onSessionEvent, onUiRequest);
const handle = supervisor.openRpcStream(instanceId, onSessionEvent, onUiRequest);
if (!handle) {
return undefined;
}