Skip to content

fix(LRP): long imported cards no longer break chat start - #149

Merged
spuentesp merged 2 commits into
masterfrom
fix/5a-stack-empty-and-estimate
Nov 15, 2026
Merged

spuentesp merged 2 commits into
masterfrom
fix/5a-stack-empty-and-estimate

Conversation

@spuentesp

Copy link
Copy Markdown
Owner

Starting a chat with an imported card expands it into a world entity. EntityCreate.description is capped at 2000 characters; a 3,415-character card failed validation after ~25 s, the chat start returned 400 and the UI chat box stayed disabled.

The entity now keeps the first 2000 characters and the full card text goes in properties.card_description. The chat prompt already used the full card. Helper card_entity_fields is covered by two new tests (long and short description).

Light-RP use case: LRP (character chat). Tested: packages/ui/backend/tests/test_character_conversation.py (58 passed), run on the branch.

🤖 Generated with Claude Code

…n the 2000-char entity cap

Expanding a light card into a world entity built EntityCreate with the whole
description; a 3,415-character card failed validation after 25 seconds and the
chat box stayed disabled. The entity keeps the first 2000 characters and the
full text goes in properties.card_description. The chat prompt already used the
full card.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@spuentesp spuentesp closed this Nov 14, 2026
@spuentesp
spuentesp deleted the fix/5a-stack-empty-and-estimate branch November 14, 2026 20:19
@spuentesp
spuentesp restored the fix/5a-stack-empty-and-estimate branch November 14, 2026 20:19
@spuentesp spuentesp reopened this Nov 14, 2026
Keep both test additions in test_character_conversation.py.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@spuentesp
spuentesp merged commit e2e800e into master Nov 15, 2026
5 checks passed
@spuentesp
spuentesp deleted the fix/5a-stack-empty-and-estimate branch November 15, 2026 03:34
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.

1 participant