Have 'OPTION disable-pinentry' reset the gpg-agent --pinentry-mode.