From cfdecf948de67d6a926bc93ef2f4eb29effb7c48 Mon Sep 17 00:00:00 2001 From: bodote Date: Sat, 31 Jan 2026 16:09:41 +0100 Subject: [PATCH] Fix Codex task prompt metadata for task artifacts --- tools/cli/installers/lib/ide/codex.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/cli/installers/lib/ide/codex.js b/tools/cli/installers/lib/ide/codex.js index 60250a39..12bc2dcd 100644 --- a/tools/cli/installers/lib/ide/codex.js +++ b/tools/cli/installers/lib/ide/codex.js @@ -94,6 +94,8 @@ class CodexSetup extends BaseIdeSetup { const tasks = await getTasksFromBmad(bmadDir, options.selectedModules || []); const taskArtifacts = []; for (const task of tasks) { + const relativeTaskPath = path.relative(projectDir, task.path).replaceAll('\\', '/'); + const taskPromptPath = `{project-root}/${relativeTaskPath}`; const content = await this.readAndProcessWithProject( task.path, { @@ -105,7 +107,9 @@ class CodexSetup extends BaseIdeSetup { taskArtifacts.push({ type: 'task', module: task.module, + name: task.name, sourcePath: task.path, + path: taskPromptPath, relativePath: path.join(task.module, 'tasks', `${task.name}.md`), content, });