* Ensure mux-owned SSH config is set up for Coder workspaces. * Run before every Coder workspace connection (idempotent).
()
| 1532 | * Run before every Coder workspace connection (idempotent). |
| 1533 | */ |
| 1534 | async ensureMuxCoderSSHConfig(): Promise<void> { |
| 1535 | log.debug("Ensuring mux-owned Coder SSH config"); |
| 1536 | const coderBinary = await this.resolveCoderBinaryPath(); |
| 1537 | if (coderBinary == null) { |
| 1538 | log.debug("Skipping mux-owned Coder SSH config setup because coder binary is unavailable"); |
| 1539 | return; |
| 1540 | } |
| 1541 | |
| 1542 | await ensureMuxCoderSSHConfigFile({ |
| 1543 | coderBinaryPath: coderBinary, |
| 1544 | }); |
| 1545 | } |
| 1546 | } |
| 1547 | |
| 1548 | // Singleton instance |
no test coverage detected