sessionCopy property

  1. @override
AgentSdkServerTransport Function()? get sessionCopy
override

a transport that starts its own server, on the Node this one resolved and the script it runs. The server takes one client — the security boundary its header states — so a session cannot share this transport's child; it starts one, owned by the session's isolate and gone with it. The installer and the stderr listener stay here: installing is the main isolate's act, and the listener is the main isolate's object.

Implementation

@override
AgentSdkServerTransport Function()? get sessionCopy {
  final executable = _node?.executable;
  if (executable == null) return null;
  return _copyOn(
    executable,
    serverScript,
    apiKey,
    scrubbedVariables,
    _credentialIsolationRoot,
    startupTimeout,
  );
}