Truncate Long Permission List Entries for Readability

Resolved 💬 3 comments Opened Jul 17, 2025 by anuzis Closed Jan 5, 2026

Bug Description
Reviewing the permissions list, it's currently grown to 40+ lines (I can't see the end of the list), and several of them are 1-off commands that are more than a page long, e.g. Claude inserting the entire contents of a specific file edit or something like that. Having these in the list makes the list almost impossible to effectively review and prune. Probably a good idea to auto-detect this kind of case and avoid displaying it in the permissions list, or if it needs to be in the list, having some way to truncate the visual to keep it to 1 line, allowing the user to expand/collapse the full details if they might want to keep it.

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 1.0.53
  • Feedback ID: e5a83ce4-d105-4864-bcbc-ea53d1c57650

Example excerpt of problematic rule:

Deleted allow rule Bash(LOCAL=1 python3 -c "
     import os
     import django
     from django.conf import settings

     # Setup Django
     os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'redacted.settings')
     django.setup()

     # Test importing the updated view
     try:
         from instructor.views import simulation_detail
         print('SUCCESS: Updated simulation_detail view imports correctly')
     except Exception as e:
         print(f'ERROR: Failed to import updated view: {e}')

     # Test importing (actual rule continues for an additional 20+ lines)

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗