ci: verify green gate with platform-independent prompt name guard
Quality Gate / gate (push) Successful in 35s

This commit is contained in:
zoltan57
2026-08-18 17:24:56 -05:00
parent 5cf584f9b8
commit e61cf03172
+3
View File
@@ -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
):