Vali-98 / ChatterUI

Simple frontend for LLMs built in react-native.
GNU Affero General Public License v3.0
294 stars 18 forks source link

Removing a Failed Imported Character is not possible #48

Open 4riw opened 1 month ago

4riw commented 1 month ago

Hi, I tried to import a v2 card in .png format into the app. Because of the lack of visual cues and a long processing time, the import process failed somehow. The character's list is now cluttered with the failed entry that cannot be removed. Wouldn't it be cool to have a swipe-to-delete option?

Produced on Android 11, Samsung A315G using v 0.7.8. The char card imported as png file from chub ai.

Screenshot_20240719-220610_ChatterUI_1

Vali-98 commented 1 month ago

Thanks for the report, the imports are supposed to be rejected by database if it fails to load, so I'm not sure how specific cards are bypassing that.

The error above is caused by failure to create a new chat, probably due to said card lacking greeting data to produce one. If you have the logs, see if it records the reason why it fails to import the character.

What's surprising is when importing a card, the final transaction to be run is await tx.insert(characterTags).values(tagids).onConflictDoNothing(). This transaction adds the character tags visible in the screenshot which proves its somehow bypassing the insert fail checks.

These tasks will be considered:

4riw commented 1 month ago

This is the problematic character card. chub.ai/characters/frenchroccocco/possessed-alice-63a5f619