ChuanhuChatGPT icon indicating copy to clipboard operation
ChuanhuChatGPT copied to clipboard

[Bug]: Literally all settings don't save. (Reset upon page reload)

Open Happ1ness-dev opened this issue 8 months ago • 1 comments

这个bug是否已存在现有issue了?

  • [X] 我确认没有已有issue,且已阅读常见问题

错误表现

When I reload the page, all settings are being reset. Chats are also vanishing sometimes, but after I created a new user, the issue with chats disappeared (partially, because chat settings are still being reset.)

复现操作

  1. Launch the web ui script
  2. Open the webpage in browser
  3. Change some settings
  4. Reload the webpage
  5. Nothing has been saved.

错误日志

There's absolutely no errors or even warnings indicating that something is wrong.

运行环境

  • OS: Android 12
  • Browser: Chrome 115.0.5790.138
  • Gradio version: gradio==3.43.2, gradio-client==0.5.0
  • Python version: 3.8, 3.11 (tried both, and either of them have same results.)

帮助解决

  • [ ] 我愿意协助解决!

补充说明

I'm running it in termux, in proot distro. Everything has installed without any issues though, so I doubt it's an issue with my environment.

Oh, btw, I'm using it in venv, if it helps.

Happ1ness-dev avatar Nov 10 '23 02:11 Happ1ness-dev

Hi, thank you for your detailed feedback. Indeed, we haven't done the function of automatically saving settings yet, and theoretically every refresh of the page will still use the settings or default settings in config.json instead of what we changed last time in UI. (From this perspective, this issue is not a bug.)

The priority of configuring settings in config.json or in UI may still need further discussion. And for multi-user function, maybe each user needs his own configuration?……🤯

Keldos-Li avatar Nov 10 '23 14:11 Keldos-Li