fix: inject role prompts into AGENTS.md for codex container reviewer

prepareContainerSessionEnvironment now writes AGENTS.md (with platform
+ paired-room prompts) to a session-local .codex/ dir alongside auth
credentials from host. CODEX_HOME points to this dir so codex-runner
gets role-appropriate prompts instead of empty instructions.
This commit is contained in:
Eyejoker
2026-04-01 06:00:26 +09:00
parent 671eb18252
commit fad3ce3bdf
2 changed files with 29 additions and 6 deletions

View File

@@ -512,7 +512,9 @@ export async function runReviewerContainer(args: {
}
}
if (isCodexAgent) {
execArgs.push('-e', 'CODEX_HOME=/home/node/.codex');
// Use session-local .codex dir (contains AGENTS.md with role prompts)
// instead of the host-mounted ~/.codex (which has owner-only config).
execArgs.push('-e', 'CODEX_HOME=/home/node/.claude/.codex');
}
const runnerPath = isCodexAgent
? '/app/codex/dist/index.js'