juzeon / SydneyQt

A cross-platform desktop client for the jailbroken New Bing AI Copilot (Sydney ver.) built with Go and Wails (previously based on Python and Qt).
The Unlicense
809 stars 77 forks source link

[BUG] Program losses settings and chats when no disk space left. #221

Closed Theking1313 closed 4 months ago

Theking1313 commented 4 months ago

Checks

Describe the bug

The program gives an error when the drive Sydney Qt is on has not space left and the application cannot save its data, it proceeds to have an error and then once you okay the error it crashes.

You then need to delete the config.lock file or the program will not open again and gives an error,

If the JSON file is empty (It can be empty after a crash where no disk space) the program gives an error seen in the screenshot.

To Reproduce

Steps to reproduce the behavior:

When SydneyQt is open on a drive that runs out of space or has not space left it cannot save the data and crashes.

You have to delete the config.lock file or JSON file. But then all settings and chats are lost.

Expected behavior

The program should handle when the drive does not have space and handles saving the program's chats and settings without losing data.

Maybe warn the user the drive is out of space, but the program already deletes all you're setting and chats once it tries to save as it tries to write to a full disk.

Screenshots

image

Desktop (please complete the following information):

Additional context

Add any other context about the problem here.