https://bugs.kde.org/show_bug.cgi?id=506687
Bug ID: 506687
Summary: Chat appears to be deleted but reappears after
restarting KAIChat
Classification: Applications
Product: KAIChat
Version First 0.3.3
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 183016
--> https://bugs.kde.org/attachment.cgi?id=183016&action=edit
Terminal errors after deleting chat: message not removed. Chat "ccc" still
visible. KAIChat 0.33, KDE Plasma 6.4.2.
SUMMARY
Chat appears to be deleted but reappears after restarting KAIChat
STEPS TO REPRODUCE
1. Open KAIChat
2. Right-click on a conversation in the list
3. Select "Delete"
4. Observe that the chat disappears from the UI
5. Restart the application
OBSERVED RESULT
The chat seems to be deleted at first, but it reappears after restarting the
application.
EXPECTED RESULT
The selected chat should be permanently deleted and not come back after
restart.
SOFTWARE/OS VERSIONS
Operating System: CachyOS (Arch-based)
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.4.2
Qt Version: 6.9.1
KAIChat Version: 0.33 (built from source, master branch)
ADDITIONAL INFORMATION
I launched KAIChat via terminal to investigate the issue. When deleting a chat,
the following messages appear:
org.kde.kf.textautogeneratetext.database: Filename doesn't exist:
"/home/simone/.local/share/kaichat/ai-database/messages/..."
org.kde.kf.textautogeneratetext.database: The assumption was wrong,
deleteMessage was called before addMessage
qt.sql.qsqldatabase: QSqlDatabasePrivate::removeDatabase: connection ... is
still in use, all queries will cease to work.
It appears that deleteMessage() is being called before addMessage(), meaning
the deletion is not correctly persisted in the database. This results in the
conversation being visually removed only temporarily and returning after a
restart.
A screenshot of the terminal output is attached.
--
You are receiving this mail because:
You are watching all bug changes.