Skip to content

fix: avoid transcript stalls when rendering large shell commands - #6

Merged
Lucartas merged 3 commits into
mainfrom
fix/avoid-large-command-rendering-stalls
Nov 25, 2026
Merged

Lucartas merged 3 commits into
mainfrom
fix/avoid-large-command-rendering-stalls

Conversation

@Lucartas

@Lucartas Lucartas commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Build shell words in linear time and reuse command analysis across transcript summaries, details, and restored history.
  • Use a short preview and skip shell highlighting for long commands while keeping the full command detail.
  • Preserve ripgrep hit counts and no-match reporting for oversized searches.

Validation

  • ./bin/run-tests.sh passed all 726 ERT tests in Emacs 31.1.
  • In batch Emacs, a synthetic quoted patch of about 20 KB went from 3.14 s to 22 ms for command-start rendering. On the final branch, 50 KB and 100 KB inputs rendered in 54 ms and 106 ms, respectively.

@Lucartas Lucartas self-assigned this Nov 25, 2026
@Lucartas Lucartas changed the title Avoid transcript stalls when rendering large shell commands fix: avoid transcript stalls when rendering large shell commands Nov 25, 2026
@Lucartas
Lucartas merged commit 386b4e8 into main Nov 25, 2026
1 check passed
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