From e61cf03172d10c8dec962e222032fb523ef094b5 Mon Sep 17 00:00:00 2001 From: zoltan57 <40281233+zoltan57@users.noreply.github.com> Date: Tue, 18 Aug 2026 17:24:56 -0500 Subject: [PATCH] ci: verify green gate with platform-independent prompt name guard --- src/transcription/services/prompts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/transcription/services/prompts.py b/src/transcription/services/prompts.py index b0b18be..31c7ed9 100644 --- a/src/transcription/services/prompts.py +++ b/src/transcription/services/prompts.py @@ -104,8 +104,11 @@ class PromptStore: def _resolve_existing_prompt(self, name: str) -> Path: normalized_name = name.strip() + # Path().name is platform-dependent: POSIX treats "\" as an ordinary filename + # character, so reject both separators explicitly to match config.PromptFilename. if ( not normalized_name + or any(separator in normalized_name for separator in ("/", "\\")) or Path(normalized_name).name != normalized_name or Path(normalized_name).suffix.lower() != PROMPT_EXTENSION ):