jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.69k stars 310 forks source link

1Password prompts for password everytime #461

Open blackxored opened 1 month ago

blackxored commented 1 month ago

Ok, so 1password-cli doesn't seem to like whatever it is we do when we invoke it through api_key_cmd on Arch. It prompts for authorization everytime.

I can op read from that same terminal multiple times and only prompting the first time, however whenever I launch nvim it prompts.

It might be related to plenary.job and the fact that 1Password seems to use the TTY to remember sessions:

37069 ?        Sl     0:00 op read op://Private/openai-api-key/password

vs (when running from shell):

37425 pts/1    Sl+    0:00 op read op://Private/openai-api-key/password

https://developer.1password.com/docs/cli/app-integration-security/#session-credentials

asgeo1 commented 2 days ago

Having the same issue.

Kitty 0.23.1 Fish 3.7.0 MacOS 14.6.1