Conflict between `claude` console screen management and GPG `pinentry` during secret key passphrase prompt for Git commit signing.
After Claude runs a shell tool call with git commit -m <some message> and GPG pinentry tries to take over the console screen for secure passphrase entry, the claude program keeps refreshing the screen causing an endless flicker on the console as the two programs fight.
Not sure what the best solution here is. Might have to warn people about this edge case. Could also check the Git clone's .git/config to see if signing is enabled, but that is probably overgeneralized, since some people will be using keychain managers which might not exhibit this problem. Unfortunately, keychain manager integration is neither default nor particularly mature on some systems.
Another approach would be for Claude to add --no-gpg-sign to the command. The user could always amend the commit with a signature after the fact.
This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗