A saved code was cleared only when it worked, so a code that could never work stayed saved. It kept hiding every newer code for a month, the exact problem the change set out to end.
Clear saved input on any final answer, not only on success. A refusal is final too.