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.
npm i -g hunkdiff@0.17.7Hunk 0.17 is no longer the current release. See the latest release or all install options.
Related documentation
Section titled “Related documentation”Releases in this series
Section titled “Releases in this series”0.17.7
Section titled “0.17.7”July 28, 2026
Patch Changes
Section titled “Patch Changes”- 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'ssystemsinput to the same list so building theaarch64-darwinpackage never forces an Intel macOS Nixpkgs. The system list is exposed as asystemsflake input for consumers that need to override it.
0.17.6
Section titled “0.17.6”July 24, 2026
Patch Changes
Section titled “Patch Changes”- 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.
0.17.5
Section titled “0.17.5”July 24, 2026
Patch Changes
Section titled “Patch Changes”- 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.
0.17.4
Section titled “0.17.4”July 23, 2026
Patch Changes
Section titled “Patch Changes”- 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.
0.17.3
Section titled “0.17.3”July 19, 2026
Patch Changes
Section titled “Patch Changes”- 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.
0.17.2
Section titled “0.17.2”July 18, 2026
Patch Changes
Section titled “Patch Changes”- 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.
0.17.1
Section titled “0.17.1”July 15, 2026
Patch Changes
Section titled “Patch Changes”- 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
HOMEis unavailable.
0.17.0
Section titled “0.17.0”July 7, 2026
Minor Changes
Section titled “Minor Changes”- Add a configurable menu bar toggle so keyboard-driven reviews can reclaim one row of terminal space.
- Add an
enableClaudeIntegrationhome-manager option that links the packagedhunk-reviewskill into~/.claude/skills, so Nix users get the Claude Code review skill without manual setup. - Add an
enableJujutsuIntegrationhome-manager option that sets hunk as the jujutsu pager and switchesui.diff-formatterto:gitso jj emits diffs hunk can render.
Patch Changes
Section titled “Patch Changes”- 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
.mtsand.ctsfiles as TypeScript instead of plain text. - Stop treating Escape as a global quit shortcut; use
qto 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, sohunk sessioncommands never found a live session.