Skip to content

Avoid syntax highlighting hidden diffs in compact patch summaries - #278

Merged
JJLiebig merged 4 commits into
mainfrom
fix/compact-patch-summary-cpu
Nov 12, 2026
Merged

JJLiebig merged 4 commits into
mainfrom
fix/compact-patch-summary-cpu

Conversation

@JJLiebig

@JJLiebig JJLiebig commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Compact patch history rendered and syntax-highlighted the complete diff before retaining its first summary line. A live workstation profile attributed about 90% of sampled CPU to highlighting beneath the fork wrapper.

Compute and retain the existing summary header without rendering the diff body, and prepare compact patches before insertion visibility measurement. Preserve complete detailed transcript and raw output.

Validation at eb393be:

  • Focused codex-tui library tests: 3 passed, 0 failed, including unchanged compact/patch snapshots. The regression exercises normal patch-event insertion and repeated renders at several widths, requires zero summary-highlighting calls, and verifies detailed output still highlights.
  • Formatting and diff checks passed.
  • Review Suite fast complete (rvw_3ea8b675). Fixed the live-insertion finding. Dismissed unchanged upstream hydration/row-accounting findings as upstream / out of scope.
  • Scoped clippy passed with invocation-only allowances for clippy::unwrap_used and clippy::never_loop. The original command failed on two existing account-settings unwraps and a Windows input loop compiled on Linux; both files are blob-identical to main (e0663230a0e4, e61d0055e104). No lint settings or unrelated code changed.
  • Blocking CI is manually disabled in this repository; no CI pass is claimed. Workspace-wide tests are unnecessary for this bounded TUI change.

Scope is the Codex++ compact-activity capability, with a minimal header-only preview return in the upstream renderer. Upstream pagination/hydration measurement remains unchanged.

@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@JJLiebig
JJLiebig marked this pull request as ready for review November 12, 2026 13:04
@JJLiebig
JJLiebig merged commit 5f73d5b into main Nov 12, 2026
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.

1 participant