merge: isolate agent cwd in .ideai/run/<id> (convention-file collision fix, §14.1)

This commit is contained in:
2026-06-06 12:26:02 +02:00
7 changed files with 242 additions and 31 deletions

View File

@ -96,7 +96,10 @@ pub struct AgentProfile {
pub context_injection: ContextInjection,
/// Optional detection command (e.g. `claude --version`).
pub detect: Option<String>,
/// Working-directory template (e.g. `"{projectRoot}"`).
/// Working-directory template. Always `"{agentRunDir}"` (ARCHITECTURE §14.1):
/// an agent's PTY cwd is its isolated `.ideai/run/<agent-id>/` directory,
/// **never** the project root, so that N agents of the same profile never
/// collide on a single conventional file (`CLAUDE.md`, …) at the root.
pub cwd_template: String,
}