Skip to content

Hunk 0.17

July 7, 2026 – July 28, 2026 · 8 releases

Hunk 0.17 makes the review chrome configurable, adds an Agent menu for setting up the review skill, and smooths out scrolling, theming, and session reliability across platforms.

Terminal window
npm i -g hunkdiff@0.17.7

Hunk 0.17 is no longer the current release. See the latest release or all install options.

July 28, 2026

  • Fix session commands when the local daemon uses the IPv6 loopback address.
  • Fix Nix flake evaluation on Nixpkgs 26.11, which dropped x86_64-darwin. Hunk's flake no longer declares that system, and it now pins bun2nix's systems input to the same list so building the aarch64-darwin package never forces an Intel macOS Nixpkgs. The system list is exposed as a systems flake input for consumers that need to override it.

July 24, 2026

  • Republish the 0.17.5 application changes as 0.17.6 so the GitHub release includes downloadable binaries for every supported platform. Application behavior is unchanged from 0.17.5.

July 24, 2026

  • Avoid loading OpenTUI's embedded native library for headless commands. Help, version, session polling, daemon serving, markup rendering, and non-interactive pager paths now stay behind a lightweight CLI entrypoint, preventing Bun from leaking a native temp file for commands that never open the review UI.
  • Optimize terminal cell width measurement so diffs with CJK, emoji, and chrome-glyph runs render faster: single-scalar clusters now measure through a fast zero-width check plus the East Asian Width table instead of string-width's expensive emoji regexes, while multi-scalar clusters still defer to string-width for identical results.

July 23, 2026

  • Restore OpenTUI's platform-default renderer threading to improve interactive startup on macOS.
  • Rapidly pressing Ctrl+S (or double-clicking Save) while saving a draft note no longer saves the same note twice, and saved note ids stay unique even within one millisecond.

July 19, 2026

  • Extend static pager diff-row backgrounds to the edge of host panels such as Lazygit.
  • Wrap plain-text agent notes by terminal cells instead of UTF-16 code units, so CJK and emoji text wraps correctly instead of being truncated with silent content loss. Long unbroken words split on grapheme boundaries, so wide characters and surrogate pairs are never cut apart.

July 18, 2026

  • Reject malformed and unsafe line and hunk numbers instead of accepting their numeric prefix.
  • Fix mouse-selection copy misalignment on lines with wide (CJK, emoji) characters: drag, double-click, and triple-click selections now convert terminal cell columns into string indices before slicing, so the copied text matches the selected cells exactly. File-header rows with wide-character filenames now copy with the same cell alignment, and invisible zero-width characters at a selection boundary round-trip through the clipboard.

July 15, 2026

  • Prevent Windows crashes when scrolling to the end of a diff and suppress Yoga NaN warning spam in Apple Silicon npm installs by upgrading OpenTUI to 0.4.3.
  • Reduced retained memory for large reviews by lazily materializing cached geometry row plans only when copy selection needs them.
  • Fix global config discovery on Windows when HOME is unavailable.

July 7, 2026

  • Add a configurable menu bar toggle so keyboard-driven reviews can reclaim one row of terminal space.
  • Add an enableClaudeIntegration home-manager option that links the packaged hunk-review skill into ~/.claude/skills, so Nix users get the Claude Code review skill without manual setup.
  • Add an enableJujutsuIntegration home-manager option that sets hunk as the jujutsu pager and switches ui.diff-formatter to :git so jj emits diffs hunk can render.
  • Add an Agent menu dialog that shows and copies the Hunk review skill setup prompt.
  • Upgrade OpenTUI to 0.4.2 and Bun to 1.3.14 for renderer, input, and platform fixes.
  • Fix a transient bottom-edge scroll clamp: mounted diff sections now always render their agent-note rows, so the review stream's painted height matches its measured layout height and over-scrolling at the bottom can no longer snap short by the height of an offscreen note.
  • Highlight .mts and .cts files as TypeScript instead of plain text.
  • Stop treating Escape as a global quit shortcut; use q to quit while preserving Escape for dialogs and focused controls.
  • Keep live review sessions from being pruned after the machine wakes from sleep.
  • Avoid transient mixed-color frames when previewing or accepting themes from the theme selector.
  • Preserve added and removed diff row tints when transparent background mode is enabled in the interactive TUI.
  • Fix session daemon auto-launch on Windows: the compiled binary's virtual B:\~BUN\... entrypoint was mistaken for a script path and passed to the relaunched daemon as a bogus argument, so hunk session commands never found a live session.

Newer: Hunk 0.18 · Older: Hunk 0.16 · All releases