Skip to content

Commit d57e9e2

Browse files
committed
Fix visualizer sync path resolution after reorg
Bugfix: handle header-based visual paths for both collection roots - Parse Postman Visualizer header path when present in test script - Strip leading visual root prefix (PyPNM or PyPNM-CMTS) safely - Preserve fallback mapping from folder path and request name - Restore sync checks for PyPNM and PyPNM-CMTS to zero missing files - Keep OFDM endpoint reorg compatible with visual sync workflow - 2026-02-28 22:47:25
1 parent b0cca9d commit d57e9e2

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CODING_AGENTS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
## Commit Message Suggestions (Required)
2222

23-
- If request via chat request starts with commit-msg, then preface command ./tools/git/git-save.sh with commit-msg "<commit-msg>"
23+
- If a chat request starts with `commit-msg`, use: `./tools/git/git-save.sh --commit-msg "<commit-msg>"`
24+
- Do not use `commit-msg` as a positional argument; `git-save.sh` expects `--commit-msg`.
2425
- One line summary (max 50 characters)
2526
- One line Summary start: Feature: , Bugfix: , Docs: , Refactor: , Test:
2627
- Detailed description lines (max 72 characters per line); every line after the first must start with `-`

tools/postman/sync_visualizers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ def sync_visualizers(*, root: Path, collection_rel: Path, visual_root_rel: Path,
140140
for parent_parts, req in visualizer_reqs:
141141
req_name = req.get("name", "")
142142
rel = _extract_visualizer_header_rel(req) or "/".join([*parent_parts, req_name])
143+
root_prefix = f"{visual_root.name}/"
144+
if rel.startswith(root_prefix):
145+
rel = rel[len(root_prefix) :]
143146
html_path, matched_rel = _resolve_visual_html_path(visual_root, rel)
144147
if matched_rel:
145148
mapped_paths.add(matched_rel)

0 commit comments

Comments
 (0)