Skip to content

[Bug]: layout.addElement drops unread parameters silently on the remaining element kinds #3074

Done

Description

@ninhhaidang

Summary

#2890 (addressed in #3060) added per-kind parameter allow-list validation (only_add_keys) to layout.addElement for "grid" and "extentIndicator" first. The other layout.addElement element kinds still accept unread keys silently and drop them without error or notice.

Examples

Proposed fix

Add per-kind ADD_*_KEYS allow-lists and validate them with only_add_keys (before mutating the layout, treating null as not given) for the remaining layout.addElement kinds in crates/engine/src/cmd/layout.rs, following #2890 and #3060 (coordinating with #3066 if layout commands are split).

Activity

  1. choupeanut commented on Nov 28, 2026

    @choupeanut
    Contributor

    I'm taking this one: each remaining element kind gets its own allow-list beside the grid and extent indicator ones, so layout.addElement refuses a key it won't read before anything is added. PR shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions