(sessionId: string, agentId: string)
| 55 | */ |
| 56 | export function getTaskOutputPath(sessionId: string, agentId: string): string { |
| 57 | return path.join(getProjectsRoot(), encodeSessionDir(sessionId), "tasks", `${agentId}.output`); |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Make sure the `tasks/` directory and the empty .output file both |
| 62 | * exist. Idempotent — safe to call repeatedly. |
| 63 | * |
| 64 | * We pre-create an empty file so the parent's Read tool doesn't error |
| 65 | * with ENOENT during the brief window between `async_launched` returning |
| 66 | * and the first event being written. |
| 67 | */ |
no test coverage detected