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