[ColorControl] TickSat sends a stop hue frame to the delegate while a color loop is running

Author: Alami-AmineCreated Sep 29, 2026Updated Sep 29, 2026

Problem

  • While a color loop runs alongside a saturation transition, ColorControlCluster::TickSat re-asserts the enhanced hue with OnEnhancedHueChanged(hue, hueMoving), where hueMoving only checks for a hue transition.
  • A running loop is not a hue transition, so every saturation tick sends transitionActive == false. This happens for a saturation transition that is running when the loop starts, and for MoveToSaturation sent while the loop runs.
  • ColorControlDelegate.h defines a false frame as an instruction to stop moving, and says an active color loop's frames are always true.
  • A delegate that runs the loop in hardware (the case OnColorLoopStarted is documented for) would stop it, while ColorLoopActive stays 1.

Proposed fix

  • Treat a driving loop as a moving hue axis in TickSat: hueMoving = ((hsx != nullptr) && hsx->hue.has_value()) || LoopIsDriving();
  • Unit test: a delegate that tracks hardware-loop state stays "looping" through a saturation transition started before or during the loop.

Raised in review of #74447 (https://github.com/project-chip/connectedhomeip/pull/74447#discussion_r4124870893).

cc @andy31415 @marybadalyan

Source: project-chip/connectedhomeip