zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
19.38k stars 610 forks source link

Unable to enter password in GPG password prompt (pinentry) #3419

Open dcchambers opened 2 weeks ago

dcchambers commented 2 weeks ago

Attempting to enter GPG password in the terminal (with the pinentry program) results in graphical errors (text pasting in the wrong place) in Zellij and inability to enter my GPG key secret. This ultimately ends in zellij behaving incorrectly/me needing to close it in order to regain proper control.

Issue description

I have GPG-signing enabled for git, so when I do a git commit I need to enter my password/GPG secret key in the pinentry program. This opens up a password prompt in the terminal which normally hides the password characters from view. When trying to run this in Zellij I am unable to enter my password at all - the text does not enter in the password prompt area in the terminal and characters appear unhidden.

image

Here's a couple of screenshots that run through the issue:

Before running git commit command which will prompt me to enter my GPG password:

image

The GPG password prompt popping up:

image

Graphical issues and inability to enter my password:

image

Minimal reproduction

Enable GPG signing in git and try to commit a code change causing the GPG password prompt to pop up

Other relevant information

Because this is...sort of a grapical issue I included some graphical info as well:

Logs

Logs ``` INFO |zellij_client | 2024-06-13 09:27:49.211 [main ] [zellij-client/src/lib.rs:178]: Starting Zellij client! INFO |zellij_server | 2024-06-13 09:27:49.226 [main ] [zellij-server/src/lib.rs:284]: Starting Zellij server! INFO |zellij_server | 2024-06-13 09:27:49.283 [main ] [zellij-server/src/lib.rs:1068]: Compiling plugins using Cranelift INFO |zellij_server::plugins | 2024-06-13 09:27:49.283 [wasm ] [zellij-server/src/plugins/mod.rs:203]: Wasm main thread starts WARN |zellij_utils::input::layo| 2024-06-13 09:27:49.284 [wasm ] [zellij-utils/src/input/layout.rs:105]: Overriding plugin alias WARN |zellij_utils::input::layo| 2024-06-13 09:27:49.284 [wasm ] [zellij-utils/src/input/layout.rs:105]: Overriding plugin alias INFO |zellij_server::plugins::p| 2024-06-13 09:27:49.291 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:533]: Loaded plugin 'tab-bar' from cache folder at '/Users/dchambers/Library/Caches/org.Zellij-Contributors.Zellij' in 2.413959ms INFO |zellij_server | 2024-06-13 09:27:49.291 [async-std/runti] [zellij-server/src/lib.rs:1068]: Compiling plugins using Cranelift INFO |zellij_server::plugins::p| 2024-06-13 09:27:49.294 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:533]: Loaded plugin 'status-bar' from cache folder at '/Users/dchambers/Library/Caches/org.Zellij-Contributors.Zellij' in 5.251292ms INFO |zellij_server | 2024-06-13 09:27:49.294 [async-std/runti] [zellij-server/src/lib.rs:1068]: Compiling plugins using Cranelift INFO |zellij_client | 2024-06-13 09:30:04.378 [main ] [zellij-client/src/lib.rs:533]: Bye from Zellij! INFO |zellij_server::plugins | 2024-06-13 09:30:04.378 [wasm ] [zellij-server/src/plugins/mod.rs:745]: wasm main thread exits ERROR |zellij_server::os_input_o| 2024-06-13 09:30:04.379 [screen ] [zellij-server/src/os_input_output.rs:915]: Failed to apply cached resizes: failed to send message to pty writer ERROR |zellij_server::os_input_o| 2024-06-13 09:30:04.379 [screen ] [zellij-server/src/os_input_output.rs:904]: Failed to cache resizes: failed to send message to pty writer ERROR |zellij_server::os_input_o| 2024-06-13 09:30:04.379 [screen ] [zellij-server/src/os_input_output.rs:915]: Failed to apply cached resizes: failed to send message to pty writer INFO |zellij_server::plugins::w| 2024-06-13 09:30:04.380 [wasm ] [zellij-server/src/plugins/wasm_bridge.rs:287]: Bye from plugin 0 INFO |zellij_server::plugins::w| 2024-06-13 09:30:04.381 [wasm ] [zellij-server/src/plugins/wasm_bridge.rs:287]: Bye from plugin 1 ``` ``` ✔ .bashrc loaded [?2004h09:27:49 ~ ❱❱ sttuyy sdizeize [?2004l 22 90 [?2004h09:27:54 ~ ❱❱ cd Code/dotfiles/ [?2004l [?2004h09:28:10 ~/Code/dotfiles ❱❱ git commit -m 'Add zed config'Update zede confid zcoconfig' [?2004l asoddfasflksferror: gpg failed to sign the data: [GNUPG:] KEYEXPIRED 1708110492 [GNUPG:] KEYEXPIRED 1708110492 [GNUPG:] KEY_CONSIDERED AE7A7B8C84E669E74EDEF950D8DCF86968549629 2 [GNUPG:] BEGIN_SIGNING H8 [GNUPG:] PINENTRY_LAUNCHED 5490 curses 1.3.0 /dev/ttys000 xterm-256color - 20620/503/4 503/20 0 gpg: signing failed: Timeout [GNUPG:] FAILURE sign 83886142 gpg: signing failed: Timeout fatal: failed to write commit object [?2004h09:29:57 ~/Code/dotfiles ❱❱ asoddfasflksf[?2004l [?2004h[?2004l ```