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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user