- Replaced the random ID generation for collapseId with React's useId for improved stability and performance. - Updated the effect logic to conditionally close the collapse based on the currentChainReasoningIsFinished state. Signed-off-by: Innei <tukon479@gmail.com>