AnnyTerfect / chatgpt-prompt-helper

Automate ChatGPT prompts using Vite and React.js. Search and input the right prompt for a seamless experience.
8 stars 0 forks source link

Dialogue box can't display #2

Open zjplab opened 2 months ago

zjplab commented 2 months ago

Now the chatgpt has updated in such a way that ctrl +/ will pop up help menu telling you what are the common shortcuts. So prompt helper couldn't be properly invoked by ctrl + /. I tried to change the code into:

        if (e.ctrlKey && e.key === "[") {
          e.preventDefault();
          setShow((val) => !val);
        }

but it's still not functioning.

AnnyTerfect commented 2 months ago

The issue appears to stem from the recent ChatGPT update, which replaced the prompt input element from a <textarea> to a <div>, causing the script to crash. I will attempt to resolve this issue shortly. Thanks for raising this issue.

AnnyTerfect commented 2 months ago

Fixed in version 0.0.10.

zjplab commented 2 months ago
image

I tested on my mac. Doesn't seem to work?

AnnyTerfect commented 2 months ago

This seems to be an unknown error in React. I have tried to pack React.js into the script. Can you try the latest version v0.0.11 released just now? Or try to refresh the page?

zjplab commented 2 months ago

@AnnyTerfect Still the same for me. Tested on my mac laptop and brave and edge browser. Does this work on you locally?

AnnyTerfect commented 1 month ago

I am sorry for the inconvenience. Although I tested the script before releasing version v0.0.11, it appears that its behavior can be unstable and may sometimes break unexpectedly.

After thorough debugging, I discovered that this issue likely stems from the script loading concurrently with the SSR (Server-Side Rendering) process. This causes a mismatch between the client and server states, potentially even clearing the rendered App Dialog.

I'll work on a fix as soon as possible. Thank you again for bringing this to my attention!