Nevertheless, I am still awaiting an answer to the original question. It works like it is now without a crash, which is an improvement to the previous state, and I would like to push it. We still change it in the future, I think we're agreed that in general, octave should determine when it is time to update, whether through the readline hook or any other callback.