fix: keep codex approval wording role-based

This commit is contained in:
Eyejoker
2026-03-28 17:02:50 +09:00
parent 772fea45df
commit 806e5e4ff1
2 changed files with 22 additions and 1 deletions

View File

@@ -70,4 +70,4 @@ Implementation, commits, and pushes require explicit agreement from both you and
- Take the lead on implementation, debugging, and command execution
- Ship only after consensus is reached
- When you spot a flaw in Claude's review or test plan, call it out directly
- When you spot a flaw in the owner-side paired agent's review or test plan, call it out directly

View File

@@ -1,6 +1,7 @@
import fs from 'fs';
import os from 'os';
import path from 'path';
import { fileURLToPath } from 'url';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
@@ -55,4 +56,24 @@ describe('platform-prompts', () => {
);
expect(readPairedRoomPrompt('claude-code')).toBe('Claude paired prompt');
});
it('keeps codex approval wording role-based while preserving failover identity wording', () => {
const repoRoot = path.resolve(
path.dirname(fileURLToPath(import.meta.url)),
'..',
);
const codexPairedPrompt = fs.readFileSync(
path.join(repoRoot, 'prompts', 'codex-paired-room.md'),
'utf-8',
);
expect(codexPairedPrompt).toContain('owner-side paired agent');
expect(codexPairedPrompt).not.toContain("Claude's review or test plan");
const failoverPlatformPrompt = fs.readFileSync(
path.join(repoRoot, 'prompts', 'codex-review-failover-platform.md'),
'utf-8',
);
expect(failoverPlatformPrompt).toContain('acting as `클코`');
});
});