Skip to content

Deleting a custom block input leaves a blank, uneditable input #3652

Description

@cwillisf

Deleting an input from a custom block definition leaves behind a blank input that cannot be typed into (a "cursed input"), and the custom block then misbehaves. Still reproducible on the current build, re-confirmed by community testers through mid-May 2026.

Repro (simple case)

Create a custom block with two inputs, put something in the second input, then delete the first input. Switch to another sprite and back: the block disappears from the input, but the custom block still behaves as if the block were still there.

Worse case and analysis (@Joeclinton1)

Empty number inputs are fine; an empty boolean input is the trigger. It seems to fire once you have more than one usage of a custom block where at least one usage has an empty boolean input, and you then delete any input that would move the boolean. Saved projects end up with broken custom block definitions (an error appears when editing the block). Putting an operator block into a boolean input and rebuilding the workspace can also make it vanish.

Also seen: a related error when editing a custom block and pressing undo (@nimeratus), with independent replication (@medlans).

May share a code path with the detached "potato" input bug (#3653).

Metadata

Metadata

Assignees

No one assigned

    Labels

    sporkRegression from the scratch-blocks unfork (spork)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions