Issue: collapseSystemInPlace does not mutate the input array
Issue: collapseSystemInPlace does not mutate the input array: a task in LegoFlow-SWE (Harbor dataset). collapseSystemInPlace() is designed to take an array of system message strings and collapse it in‑place into a single string joined by double newlines. However, after calling the function, the…
The task
`collapseSystemInPlace()` is designed to take an array of system message strings and collapse it in‑place into a single string joined by double newlines. However, after calling the function, the passed array remains unmodified. Code that holds a reference to the original array (for example, the message formatting…
Part of Lego-X/LegoFlow-SWE.