(config: InProcessRunnerConfig)
| 1542 | * @param config - Runner configuration |
| 1543 | */ |
| 1544 | export function startInProcessTeammate(config: InProcessRunnerConfig): void { |
| 1545 | // Extract agentId before the closure so the catch handler doesn't retain |
| 1546 | // the full config object (including toolUseContext) while the promise is |
| 1547 | // pending - which can be hours for a long-running teammate. |
| 1548 | const agentId = config.identity.agentId |
| 1549 | void runInProcessTeammate(config).catch(error => { |
| 1550 | logForDebugging(`[inProcessRunner] Unhandled error in ${agentId}: ${error}`) |
| 1551 | }) |
| 1552 | } |
| 1553 |
no test coverage detected