From 9717629e93dced6c249cf751692ded4a2e39381d Mon Sep 17 00:00:00 2001 From: Wendy Smoak Date: Wed, 18 Feb 2026 17:26:19 -0500 Subject: [PATCH] Use explicit \n in installCustomAgentLauncher template string Replaces multi-line template literal with string concatenation using explicit \n escape sequences, matching the pattern in transformToSkillFormat. This ensures consistent line endings regardless of how the source file is checked out. Co-Authored-By: Claude Opus 4.6 --- tools/cli/installers/lib/ide/codex.js | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/tools/cli/installers/lib/ide/codex.js b/tools/cli/installers/lib/ide/codex.js index a261b0f6e..1245b7862 100644 --- a/tools/cli/installers/lib/ide/codex.js +++ b/tools/cli/installers/lib/ide/codex.js @@ -444,21 +444,17 @@ class CodexSetup extends BaseIdeSetup { await fs.ensureDir(skillDir); const fm = yaml.stringify({ name: skillName, description: `${agentName} agent` }).trimEnd(); - const skillContent = `--- -${fm} ---- - -You must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command. - - -1. LOAD the FULL agent file from @${agentPath} -2. READ its entire contents - this contains the complete agent persona, menu, and instructions -3. FOLLOW every step in the section precisely -4. DISPLAY the welcome/greeting as instructed -5. PRESENT the numbered menu -6. WAIT for user input before proceeding - -`; + const skillContent = + `---\n${fm}\n---\n` + + "\nYou must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command.\n" + + '\n\n' + + `1. LOAD the FULL agent file from @${agentPath}\n` + + '2. READ its entire contents - this contains the complete agent persona, menu, and instructions\n' + + '3. FOLLOW every step in the section precisely\n' + + '4. DISPLAY the welcome/greeting as instructed\n' + + '5. PRESENT the numbered menu\n' + + '6. WAIT for user input before proceeding\n' + + '\n'; const skillPath = path.join(skillDir, 'SKILL.md'); await fs.writeFile(skillPath, skillContent, 'utf8');