github modem-dev/hunk v0.22.0-beta.0

pre-release3 hours ago

Hunk 0.22 beta: history becomes a review workspace

Hunk 0.22 turns repository history into a responsive review workspace: browse commits, select contiguous ranges, carry review context into the diff, and leave precise threaded feedback without leaving the terminal.

hunk update 0.22.0-beta.0
npm install -g hunkdiff@0.22.0-beta.0

Browse commits and review ranges

hunk log now opens a responsive, themed history browser for Git and Jujutsu. Commits are grouped by day, optional graph lines preserve topology, and visual or Shift-based range selection opens the cumulative diff for a contiguous set of commits. History has configurable command bindings, merge-parent selection, and keeps your theme and diff preferences as you move between history and review. #979 #987 #1011 #1031 #1038 #1039

Select and discuss exact code ranges

Persistent mouse and keyboard selections can now span multiple lines and drive explicit Comment, Copy, and Clear actions. Inline notes and replies participate in keyboard navigation, and agents can reply through the session CLI while inheriting the original code anchor. #931 #1012 #1044

Richer extension-powered reviews

Extensions can attach provider-neutral review metadata when delegating patches, expose that context to panes and live-session snapshots, and request a coalesced reload after an external agent changes reviewed files. The extension directory also adds hunk-gh, hunk-viewed, hunk-history, and hunk-compact-filenav. #986 #988 #981 #995 #1034

Faster, steadier terminal interaction

Long wrapped lines render and respond faster, pane animations are capped at 30 FPS and can be disabled, sidebar folders collapse without breaking navigation, suspended sessions resume cleanly, and direct-file reviews reload correctly outside repositories. #1043 #1051 #1036 #1009 #996 #1054

Compatibility notes

  • unified is now the canonical name for the single-column diff layout. Existing stack CLI and configuration values remain accepted as deprecated aliases and normalize to unified.
  • Extension API v23 adds canonicalMode and canonicalLayout, which report unified; legacy fields continue to report stack for compatibility.
  • OpenTUI integrations can use canonicalLayout: "split" | "unified"; the legacy layout: "split" | "stack" prop remains source-compatible, and canonicalLayout wins when both are supplied.
  • hunk log opens the interactive history browser when attached to a terminal. Use --static for scripted terminal output; pipes remain static.
  • Review commands now print static plain text instead of launching the TUI when stdout is not a terminal.
  • The bundled runtime is upgraded to Bun 1.4.2.

Community contributors

  • @samuela improved daemon health-probe failure reporting. #927
  • @saadjs led the stack-to-unified layout transition while preserving compatibility. #945
  • @any-victor added hunk-history to the extension directory. #995
  • @HackAttack fixed suspended-job resume behavior. #996
  • @rschoch added hunk-compact-filenav to the extension directory. #1034
All merged pull requests

Release notes: https://hunk.dev/changelog/0.22/
Full changelog: v0.21.1...v0.22.0-beta.0

Don't miss a new hunk release

NewReleases is sending notifications on new releases.