Skip to content

Status node doesn't work in all nodes mode #5411

@kazuhitoyokoi

Description

@kazuhitoyokoi

Current Behavior

I found that the status node does not work in all nodes mode. The in same group mode seems to work. Only the selected nodes mode works correctly.

Image

This issue comes from the pull request, #5114. The scope values are null in all nodes mode, "group" in in same group mode, and an array in selected nodes mode. These three types should be handled correctly.

Expected Behavior

All modes work correctly.

Image

Steps To Reproduce

Import the following example flow

Example flow

[{"id":"0d451efcce1fc047","type":"inject","z":"46522061720ca2a7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":60,"wires":[["49ea13cb5ccea181"]]},{"id":"49ea13cb5ccea181","type":"debug","z":"46522061720ca2a7","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":300,"y":60,"wires":[]},{"id":"22dd3aeb99647b23","type":"status","z":"46522061720ca2a7","name":"","scope":null,"x":120,"y":140,"wires":[["c25d219e348872c7"]]},{"id":"c25d219e348872c7","type":"debug","z":"46522061720ca2a7","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":300,"y":140,"wires":[]},{"id":"179b01ded6645dda","type":"status","z":"46522061720ca2a7","name":"","scope":"group","x":130,"y":220,"wires":[["34e3d38a6cd8716f"]]},{"id":"34e3d38a6cd8716f","type":"debug","z":"46522061720ca2a7","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":300,"y":220,"wires":[]},{"id":"b7c2b10bf3ade1c2","type":"status","z":"46522061720ca2a7","name":"","scope":["49ea13cb5ccea181"],"x":120,"y":300,"wires":[["134794a57b837e97"]]},{"id":"134794a57b837e97","type":"debug","z":"46522061720ca2a7","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":300,"y":300,"wires":[]}]

Environment

  • Node-RED version: v4.1.2
  • Node.js version: v25.2.1
  • npm version: v11.6.2
  • Platform/OS: macOS 26.0.1 (25A362) on Apple M1 Macbook Air
  • Browser: Google Chrome Version 143.0.7499.170 (Official Build) (arm64)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions