()
| 940 | // call (default, or the one named through ExecOptions.backend) |
| 941 | // and forwards to that backend's WorkspaceShell. |
| 942 | #routedShell(): WorkspaceShell { |
| 943 | const router = new WorkspaceShellRouter( |
| 944 | this.#defaultCommandBackendId ?? "", |
| 945 | (id) => this.#shellFor(id), |
| 946 | (id) => this.#resolveCommandBackendId(id) ?? "", |
| 947 | (id, handle, error) => this.#onShellError(id, handle, error), |
| 948 | ); |
| 949 | return router as unknown as WorkspaceShell; |
| 950 | } |
| 951 | |
| 952 | // Invalidate the cached handle for `id` when a shell-routed RPC |
| 953 | // fails with a known transport error. Compares the caller's |
no test coverage detected