Skip to content

Use substitute_object for carousel_config type fidelity#620

Merged
hardbyte merged 1 commit intomainfrom
fix/carousel-config-type-fidelity
Apr 3, 2026
Merged

Use substitute_object for carousel_config type fidelity#620
hardbyte merged 1 commit intomainfrom
fix/carousel-config-type-fidelity

Conversation

@hardbyte
Copy link
Copy Markdown
Owner

@hardbyte hardbyte commented Apr 3, 2026

Summary

Fix from Codex review on #619: the carousel_config resolver used substitute_variables which always returns strings. Templated values like booleans would become "True" instead of true.

Switch to substitute_object which preserves native JSON types for single {{var}} references.

Test plan

  • Unit tests pass (449/449)
  • default_index: "{{temp.reading_start_index}}" still resolves to integer

substitute_variables always returns strings, breaking booleans and
other types. substitute_object preserves native JSON types for
single-variable references (int, bool, dict, list).
@hardbyte hardbyte merged commit b075395 into main Apr 3, 2026
18 checks passed
@hardbyte hardbyte deleted the fix/carousel-config-type-fidelity branch April 3, 2026 02:24
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.

1 participant