()
| 346 | } |
| 347 | |
| 348 | function getRemoteAgentsDir(): string { |
| 349 | // Same sessionProjectDir fallback as getAgentTranscriptPath — the project |
| 350 | // dir (containing the .jsonl), not the session dir, so sessionId is joined. |
| 351 | const projectDir = getSessionProjectDir() ?? getProjectDir(getOriginalCwd()) |
| 352 | return join(projectDir, getSessionId(), 'remote-agents') |
| 353 | } |
| 354 | |
| 355 | function getRemoteAgentMetadataPath(taskId: string): string { |
| 356 | return join(getRemoteAgentsDir(), `remote-agent-${taskId}.meta.json`) |
no test coverage detected