Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

3.3 KB
Raw Blame

hn merge preparation — 2026-09-27

The user resumed work and authorized finishing the fixes and merging PR #365 after validation. Releases and replacing the installed binary remain outside this request.

Scope

  • Work on ship-hn, commit and push as GitHub account deehw.
  • Keep the creature out of the TUI. Its tim status display, command, format, configuration hooks and saved state tracking have been removed; another session is developing the creature.
  • Keep the existing tmux/fzf/agent/terminal review loop. PR #365 is not ready until the remaining review and validation gates pass.

Completed

hn-polish was fast-forwarded and pushed. Compatibility commit e30e701f closes the reported picker, groups/formats, home-window persistence, key handling, prompt history, emoji width, status layout, animation and output-efficiency gaps. Its 106 unit tests and full e2e suite passed.

The subsequent local-shell implementation is complete: a private PTY supervisor preserves shells across detach and UI/headless crashes, including output, environment, working directory, terminal state and resize. The full guarded lifecycle driver passes, including large paste, popups, daemon arrival and mixed daemon/local panes through daemon recovery. The self-handover and popup-session issues from the historical pause note are fixed. See 2026-09-27-hn-local-shell-fixes.md.

The same batch fixes after-select-pane and set-hook -R behavior, heartbeat deadline timing, targetless CLI selection, stale-socket namespace isolation and primary-socket role/activity transfer. The combined release unit suite passes all 111 tests. Root independently verified continuous output across a UI crash and both socket takeover directions.

CI is deliberately on demand in this repository. The existing CI workflow now includes static Linux x64/arm64 TUI builds, unit tests, isolated e2e/local-shell lifecycle tests and the backend desk-layout compatibility test, without publishing a release.

Remaining merge gates

  1. Commit the verified changes and integrate current main on ship-hn.
  2. Freeze the resulting commit, copied binary and change list. Run round 19 with fresh tmux, fzf, agents and terminal-feel reviewers; each needs a guarded private namespace and exact repros. Round 19 has not started yet.
  3. Run the on-demand CI workflow against that branch, inspect failures and fix confirmed issues. Recheck any reviewer findings and repeat review as needed.
  4. Update PR #365 with the final implementation, evidence and limitations; mark ready and squash-merge after the gates pass. Do not release or install a binary.

Safety

Every hn invocation needs explicit -L, --port, matching PORT and HN_SOCKET_NAME, throwaway HOME, a short private HN_TMPDIR, and unset TMUX, TMUX_PANE, HN_SOCKET. Never ports 18473 or 18907, default hn/tmux sockets or real harnesses. Reference tmux always uses a private -L.

Root checks used guarded ports 19410–19419 and hnr19fix prefixes; local-shell checks used 19440–19449 and hne19fix / hn-local-test- prefixes. Reviewers need distinct ranges and names. Clean mocks, tmux servers, UI/headless hn, PTY supervisors and test shells. Copy to a new binary path instead of overwriting a running executable.

No private home paths or real local usernames belong in committed content. All write-ups stay under docs/research/.