You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the thread.json file is corrupted or contains invalid JSON, it causes the entire thread list to become inaccessible (empty list). This issue is critical as it disrupts the user experience by preventing access to all threads.
The application should handle the corrupted thread.json gracefully. It should either:
Skip the corrupted entries and continue to load the rest of the threads.
Display an error message indicating the issue with the specific file, without crashing the entire thread list.
Actual Behavior
The application fails to load any threads, displaying an error or crashing due to the corrupted thread.json.
Possible Solution
Implement error handling for JSON parsing in the thread loading functionality. Ensure that:
The application can detect and skip over corrupted JSON entries.
A user-friendly error message is displayed, indicating the problem with the thread.json file.
Steps to Reproduce
Create a thread
Manually edit the JSON, remove any comma
Save the corrupted file.
Attempt to load the thread list in the application (by pressing Ctrl Shift R)
Screenshots / Logs
No response
What is your OS?
MacOS
Windows
Linux
The text was updated successfully, but these errors were encountered:
I tested it on my Mac; the error handling is much better now.
When i tried to edit the threads json file, it changed the entire JSON file to red as error warning.
When I got back to threads & hit Ctrl Shift R, the previous threads that I edited the JSON file were gone.
Jan version
0.5.4
Describe the Bug
When the thread.json file is corrupted or contains invalid JSON, it causes the entire thread list to become inaccessible (empty list). This issue is critical as it disrupts the user experience by preventing access to all threads.
Please refer to the discussion for more context:
https://discord.com/channels/1107178041848909847/1285798898161418260
Expected Behavior
The application should handle the corrupted thread.json gracefully. It should either:
Actual Behavior
The application fails to load any threads, displaying an error or crashing due to the corrupted thread.json.
Possible Solution
Implement error handling for JSON parsing in the thread loading functionality. Ensure that:
The application can detect and skip over corrupted JSON entries.
A user-friendly error message is displayed, indicating the problem with the thread.json file.
Steps to Reproduce
Screenshots / Logs
No response
What is your OS?
The text was updated successfully, but these errors were encountered: