Skip to content

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

Merged
MegalithOfficial merged 1 commit into
LettuceAI:mainfrom
GentleBurr:bugfix/char-import
Aug 14, 2026
Merged

fix(character): support integer type for lorebook entry position#54
MegalithOfficial merged 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

GentleBurr commented May 22, 2026

Copy link
Copy Markdown
Contributor Author

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.

@MegalithOfficial
MegalithOfficial merged commit b26e733 into LettuceAI:main Aug 14, 2026
9 checks passed
@GentleBurr
GentleBurr deleted the bugfix/char-import branch August 14, 2026 20:54
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