-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
byte π€Related to the Byte bot serviceRelated to the Byte bot serviceenhancement βThis is a brand new feature or requestThis is a brand new feature or requestgood intermediate issue π₯Good for people that like a challengeGood for people that like a challengehelp wanted πExtra attention is neededExtra attention is needed
Description
Summary
Embed fields are limited to <1024 characters, so we introduced chunking logic.
byte/src/byte/plugins/astral.py
Lines 72 to 73 in f814685
| for idx, chunk in enumerate(chunk_sequence(formatted_rule_details["explanation"], 1000)): | |
| embed.add_field(name="" if idx else "Explanation", value="".join(chunk), inline=False) |
For the most part this does just fine, but it leads to ugly lines in embeds occasionally - and more importantly it can break markdown links provided by the ruff output
Basic Example
Make the chunking "smarter" to not break lines at awkward places
Drawbacks and Impact
No response
Unresolved questions
- how
Metadata
Metadata
Assignees
Labels
byte π€Related to the Byte bot serviceRelated to the Byte bot serviceenhancement βThis is a brand new feature or requestThis is a brand new feature or requestgood intermediate issue π₯Good for people that like a challengeGood for people that like a challengehelp wanted πExtra attention is neededExtra attention is needed