Repository navigation
fix(LRP): long imported cards no longer break chat start - #149
Merged
Merged
Conversation
…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>
Keep both test additions in test_character_conversation.py. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Starting a chat with an imported card expands it into a world entity.
EntityCreate.descriptionis 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. Helpercard_entity_fieldsis 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