()
| 319 | } |
| 320 | |
| 321 | function getRemoteAgentsDir(): string { |
| 322 | // Same sessionProjectDir fallback as getAgentTranscriptPath — the project |
| 323 | // dir (containing the .jsonl), not the session dir, so sessionId is joined. |
| 324 | const projectDir = getSessionProjectDir() ?? getProjectDir(getOriginalCwd()) |
| 325 | return join(projectDir, getSessionId(), 'remote-agents') |
| 326 | } |
| 327 | |
| 328 | function getRemoteAgentMetadataPath(taskId: string): string { |
| 329 | return join(getRemoteAgentsDir(), `remote-agent-${taskId}.meta.json`) |
no test coverage detected