Prevent ChatGPT Conversation Reset

Prevents certain browser events from reaching official ChatGPT code. Otherwise, with chat history turned off, the conversation may be reset after 10 min of inactivity or even spontaneously while being active. The script is designed to only affect official ChatGPT code and to avoid interfering with other userscripts or browser extensions.

2023/10/21のページです。最新版はこちら。

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
h_h
評価
0 0 0
バージョン
2023.10.06
作成日
2023/10/05
更新日
2023/10/21
大きさ
2.3KB
ライセンス
MIT (https://opensource.org/license/mit/)
対象サイト

(AS OF MID-OCTOBER, NOT NECESSARY ANYMORE, BECAUSE THE CHATGPT BUG WAS SOLVED.)

 

 

 

If you're using Greasemonkey in Firefox, see this discussion.


Notable facts for other developers (2023-10-05):

  • In the official code, there's the snippet staleTime:6e5 or, prettified, staleTime: 600000 (10 min).
  • During network analysis of conversations with GPT-4, fetching of the resource v4-2023-04-27 can be seen whenever a reset occurs. Searching for this in the official code with the dev tools revealed a code location that, when halted on, had an association to a focus event in its stack trace. This focus event really is a combination of multiple browser events, though.