Skip to content

fix(character): support integer type for lorebook entry position#54

Open
GentleBurr wants to merge 1 commit into
LettuceAI:mainfrom
GentleBurr:bugfix/char-import
Open

fix(character): support integer type for lorebook entry position#54
GentleBurr wants to merge 1 commit into
LettuceAI:mainfrom
GentleBurr:bugfix/char-import

Conversation

@GentleBurr
Copy link
Copy Markdown
Contributor

Change the position field type in CharaCardCharacterBookEntry to handle both integers and strings during JSON deserialization. Some character card exporters output this property as an integer index rather than a string descriptor, which previously caused the entire import process to fail due to a Serde type mismatch.

Screenshot_20260522_183732

Change the `position` field type in `CharaCardCharacterBookEntry` to handle both integers and strings during JSON deserialization. Some character card exporters output this property as an integer index rather than a string descriptor, which previously caused the entire import process to fail due to a Serde type mismatch.
@MegalithOfficial
Copy link
Copy Markdown
Contributor

Have you tested the fix on multiple cards?

@GentleBurr
Copy link
Copy Markdown
Contributor Author

GentleBurr commented May 22, 2026

All of my backup cards that I picked randomly to test are still functioning and I've only stumbled upon that new one card so far that necessitates the fix—hard to find them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants