Memory Management and Contextual Consistency for Long-Running Low-Code Agents