Skip to content

Fail closed when visual_map mixed sources is a string or nested list - #112

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/visual-map-sources-2ccd
Sep 7, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/visual-map-sources-2ccd

Conversation

@jmjava

@jmjava jmjava commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

A YAML string for visual_map.<id>.sources (sources: clip.mp4) was iterated as characters in Composer.compose_segments. A nested list item was Path-joined in _resolve_source.

This PR requires present sources to be a YAML list of non-empty strings at Config.from_yaml. Missing sources and sources: [] remain allowed.

Test plan

  • ruff check src/ tests/
  • Targeted pytest for string and nested-list sources
  • Full pytest tests/ — 654 passed, 1 skipped
  • docgen benchmark vs src/docgen/benchmark_data/baseline.json (quality average 100.0)

Milestone

milestones/visual-map-sources.md

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 7, 2026 21:25
A YAML string for visual_map.<id>.sources was iterated as characters
in compose; a nested list item was Path-joined. Require a list of
non-empty strings at config load.

Co-authored-by: jmjava <jmjava@gmail.com>
ruff, pytest (654 passed, 1 skipped), and docgen benchmark are green.

Co-authored-by: jmjava <jmjava@gmail.com>
@jmjava
jmjava marked this pull request as ready for review September 7, 2026 21:26
@cursor
cursor Bot merged commit d48624b into main Sep 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants