def save_feedback()

in app/feedback.py [0:0]


def save_feedback(input_object: dict) -> None:
    """
    Append input/outputs and user feedback to a JSON Lines file using a thread lock to avoid concurrent writes from different users.
    """
    with scheduler.lock:
        with feedback_file.open(mode="a") as f:
            f.write(json.dumps(obj=input_object))
            f.write("\n")