Skip to content

Fail closed when env_file, repo_root, or dirs paths are a list - #109

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/path-config-strings-2ccd
Sep 7, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/path-config-strings-2ccd

Conversation

@jmjava

@jmjava jmjava commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

YAML lists for env_file, repo_root, and dirs.narration / audio / animations / recordings / hints loaded successfully, then Path / list TypeError’d when CLI applied the env file, the wizard resolved repo_root, or Config.__post_init__ joined bundle directories.

This PR requires those present keys to be non-empty YAML strings at config load (ConfigError). Missing keys still use defaults.

Test plan

  • ruff check src/ tests/
  • Targeted pytest for list-value ConfigError cases
  • Full pytest tests/ — 644 passed, 1 skipped
  • docgen benchmark vs src/docgen/benchmark_data/baseline.json (quality average 100.0)

Milestone

milestones/path-config-strings.md

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 7, 2026 21:15
YAML lists loaded, then Path joins TypeError'd in CLI env loading,
wizard repo_root, or Config.__post_init__. Require those present keys
to be non-empty YAML strings at config load.

Co-authored-by: jmjava <jmjava@gmail.com>
ruff, pytest (644 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:15
@cursor
cursor Bot merged commit 7969228 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