Skip to content

Conversation

@zlb22
Copy link

@zlb22 zlb22 commented Dec 28, 2025

Summary

  • truncate /run and /test outputs when they exceed 400 lines or 32 KB of text before adding to chat
  • keep head/tail plus up to 3 regex-matched blocks (±20 lines) with gap markers and a header "[truncated: total X lines, kept Y]"
  • keep terminal output full; prompt [T]/[F]/[N] (default truncated); /test failures use truncated by default

Testing

  • pytest tests/basic/test_commands.py -k truncates_long_output
  • pre-commit run --all-files

Fixes #4730

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.

Feature Request: Intelligent CI/CD Output Filtering for /run and /test Commands

1 participant