Skip to content

Releases: OpenDevEd/ai-cli-log

v1.0.10-opendeved.1 — Ctrl+Z suspend/resume

Choose a tag to compare

@bjohas bjohas released this 16 Jun 14:30

opendeved fork of alingse/ai-cli-log 1.0.10 (ISC), adding Ctrl+Z suspend/resume support.

What's new

  • Detects the raw 0x1A (Ctrl+Z) byte in the stdin handler and self-suspends (drops raw mode, sends SIGTSTP to its own process group); the byte is not forwarded to the child.
  • Restores raw mode on SIGCONT so fg resumes cleanly.
  • Forces a redraw on resume (briefly toggles the pty row count to emit a SIGWINCH) so the child TUI repaints instead of returning to a blank screen. Settle delay configurable via AI_CLI_LOG_RESUME_REDRAW_MS (default 100 ms).
  • Ships a committed dist/ so it installs without a build step.

No other behaviour changes from upstream 1.0.10.

Install (recommended — tarball)

npm i -g https://github.com/OpenDevEd/ai-cli-log/releases/download/v1.0.10-opendeved.1/ai-cli-log-1.0.10-opendeved.1.tgz
ai-cli-log --version   # 1.0.10-opendeved.1

Note: npm i -g github:OpenDevEd/ai-cli-log (git URL) currently fails under npm 11 because the nested native dependency node-pty runs its install script before extraction (spawn sh ENOENT). Use the tarball above, or install locally with npm install github:OpenDevEd/ai-cli-log.