(config: InProcessRunnerConfig)
| 1640 | * @param config - Runner configuration |
| 1641 | */ |
| 1642 | export function startInProcessTeammate(config: InProcessRunnerConfig): void { |
| 1643 | // Extract agentId before the closure so the catch handler doesn't retain |
| 1644 | // the full config object (including toolUseContext) while the promise is |
| 1645 | // pending - which can be hours for a long-running teammate. |
| 1646 | const agentId = config.identity.agentId |
| 1647 | void runInProcessTeammate(config).catch(error => { |
| 1648 | logForDebugging(`[inProcessRunner] Unhandled error in ${agentId}: ${error}`) |
| 1649 | }) |
| 1650 | } |
no test coverage detected