Parse out frontmatter for custom prompts (#4456)

[Cherry picked from https://github.com/openai/codex/pull/3565]

Removes the frontmatter description/args from custom prompt files and
only includes body.
This commit is contained in:
dedrisian-oai
2025-09-29 13:06:08 -07:00
committed by GitHub
parent 197f45a3be
commit 83a4d4d8ed
4 changed files with 110 additions and 1 deletions

View File

@@ -2258,6 +2258,8 @@ mod tests {
name: "my-prompt".to_string(),
path: "/tmp/my-prompt.md".to_string().into(),
content: prompt_text.to_string(),
description: None,
argument_hint: None,
}]);
type_chars_humanlike(