From 806e5e4ff18bf6069d0884636a94e37803d1ce5a Mon Sep 17 00:00:00 2001 From: Eyejoker Date: Sat, 28 Mar 2026 17:02:50 +0900 Subject: [PATCH] fix: keep codex approval wording role-based --- prompts/codex-paired-room.md | 2 +- src/platform-prompts.test.ts | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/prompts/codex-paired-room.md b/prompts/codex-paired-room.md index 890d53e..3519383 100644 --- a/prompts/codex-paired-room.md +++ b/prompts/codex-paired-room.md @@ -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 diff --git a/src/platform-prompts.test.ts b/src/platform-prompts.test.ts index f0fe6cc..d0f3719 100644 --- a/src/platform-prompts.test.ts +++ b/src/platform-prompts.test.ts @@ -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 `클코`'); + }); });