Reduce aggressive response truncation to preserve more content#54
Merged
RichardAtCT merged 4 commits intomainfrom Feb 19, 2026
Merged
Reduce aggressive response truncation to preserve more content#54RichardAtCT merged 4 commits intomainfrom
RichardAtCT merged 4 commits intomainfrom
Conversation
- Increase max_code_block_length from 3000 to 15000 chars, allowing code blocks to be split across multiple Telegram messages instead of truncated - Raise conversation_mode default max_content_length from 3000 to 50000, deferring splitting to the message formatter instead of discarding content - Increase git diff display limit from 2000 to 3500 chars - Update tests to match new thresholds and add coverage for split-not-truncate https://claude.ai/code/session_01HYsPu4ncZCvp5PnRNjiT6w
|
PR Review Summary
What looks good
Issues / questions
Suggested tests (if needed)
Verdict
|
The lock regeneration changed python-versions from ^3.10 to ^3.11 and dropped py3.10-era deps, which would narrow runtime/CI compatibility. https://claude.ai/code/session_01HYsPu4ncZCvp5PnRNjiT6w
Verify every chunk stays under Telegram's 4096-char hard limit across five scenarios: large plain text, huge code blocks, HTML-entity expansion (& < > characters), mixed markdown content with file operations, and format_code_output. https://claude.ai/code/session_01HYsPu4ncZCvp5PnRNjiT6w
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.
blocks to be split across multiple Telegram messages instead of truncated
deferring splitting to the message formatter instead of discarding content
https://claude.ai/code/session_01HYsPu4ncZCvp5PnRNjiT6w