briansunter / logseq-plugin-gpt3-openai

A plugin for GPT-3 AI assisted note taking in Logseq
https://twitter.com/bsunter
MIT License
700 stars 65 forks source link

Duplicate text getting pasted in two blocks #98

Open kavir10 opened 1 year ago

kavir10 commented 1 year ago

Issue description: When I am using either gpt or gpt-block commands it is creating two blocks with duplicate content

Steps to reproduce:

  1. Select any text, press Cmd+G and write the prompt

  2. Two blocks of duplicated content is visible

  3. Press Cmd+J in one block

  4. Two blocks of duplicated content is visible

Expected behavior: Add only one block of content

Actual behavior: Creates two blocks of duplicate content

Environment: Updated the plugin to v1.9.0

Frequency and severity: Each time when used and severity high

kavir10 commented 1 year ago

I think it resolved when I shut Logseq and started again. But when I disable and enable the plugin, I get this error

image
briansunter commented 1 year ago

Looks like this happens on upgrading an existing version. It should go away if you reload logseq. Looking into how to fix it.

kavir10 commented 1 year ago

Yeah it's not happening anymore after a few days, so would deprioritize this unless it is happening with others too