Skip to content

Conversation

@LIHUA919
Copy link

Add tui.diff_display config option to collapse Edit/Write tool diffs
by default, showing only file name and line statistics.

  • Add diff_display config (full | minimal) to Config.TUI
  • Add parseDiffStats() and formatDiffStats() utility functions
  • Enhance Edit tool with collapse/expand functionality
  • Enhance Write tool with collapse/expand functionality
  • Add comprehensive unit tests (12 tests, all passing)

In minimal mode:

  • Edit: shows "+N, -M lines (press Enter to expand)"
  • Write: shows "N lines (press Enter to expand)"
  • Click to toggle between collapsed and expanded views
  • Full diff remains in metadata for AI context

Fixes #9089

What does this PR do?

How did you verify your code works?

  Add tui.diff_display config option to collapse Edit/Write tool diffs
  by default, showing only file name and line statistics.

  - Add diff_display config (full | minimal) to Config.TUI
  - Add parseDiffStats() and formatDiffStats() utility functions
  - Enhance Edit tool with collapse/expand functionality
  - Enhance Write tool with collapse/expand functionality
  - Add comprehensive unit tests (12 tests, all passing)

  In minimal mode:
  - Edit: shows "+N, -M lines (press Enter to expand)"
  - Write: shows "N lines (press Enter to expand)"
  - Click to toggle between collapsed and expanded views
  - Full diff remains in metadata for AI context

  Fixes anomalyco#9089
@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one potentially related PR:

Related PR:

No duplicate PRs found with the exact same feature implementation.

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: TUI option for minimal/collapsed diff display

1 participant