Skip to content

Fail closed when concat targets or pages extra_links are not lists - #84

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/concat-segment-lists-2ccd
Sep 7, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/concat-segment-lists-2ccd

Conversation

@jmjava

@jmjava jmjava commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Follows #83 (milestones/config-mapping-keys.md). Milestone: milestones/concat-segment-lists.md.

Problem

  • concat.full: "01" (a string) was iterated as the characters 0 and 1.
  • pages.extra_links entries that were not mappings traceback'd on lnk["href"].

Changes

  • Config.from_yaml rejects non-list concat.<name> values (ConfigError).
  • ConcatBuilder also rejects non-list targets (ConcatError).
  • pages.extra_links items must be {href, label} mappings; docgen pages maps the error to ClickException.

Empty concat: remains a no-op (bundles that do not stitch a full demo).

Clock / _TimedScene math is unchanged; no baseline bump.

Test plan

  • pytest tests/ -q — 545 passed, 1 skipped
  • ruff check src/ tests/
  • docgen benchmark — meets baseline
Open in Web Open in Cursor 

A string concat.<name> was iterated as characters. Reject non-list concat
targets at config load and in ConcatBuilder. pages.extra_links items must
be href/label mappings.

Co-authored-by: jmjava <jmjava@gmail.com>
@cursor
cursor Bot merged commit 7d68000 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