v1.4.521

danielmiessler/Fabricv1.4.521Oct 15, 2026by github-actions[bot]

Upgrading?

AI Summary

Fixes interactive setup prompts hanging when terminals send carriage returns instead of newlines.

Key Highlights

  • Fixed hanging behavior on terminals like macOS kitty
  • Added `readLine` helper to handle both \r and \n
  • Removed redundant newline trimming and mutex locking from stdin

Full Release Notes

## Changes

### PR [#2141](https://github.com/danielmiessler/Fabric/pull/2141) by [putramkti](https://github.com/putramkti) and [ksylvan](https://github.com/ksylvan): fix: handle carriage return input in interactive setup prompts

- Fixed interactive setup hanging when terminals (such as kitty on macOS) send a bare carriage return instead of a newline; prompts now accept Enter reliably.
- Added a `readLine` helper that terminates on either `\r` or `\n`, strips the `\n` from `\r\n` pairs, and shares a single `bufio.Reader` so buffered input is not lost between questions.
- Simplified plugin input handling by removing redundant newline trimming from setup question answers.
- Removed mutex locking from the shared standard input reader initialization.
- Consolidated line-ending tests into table-driven LF, CRLF, and CR cases, replacing the standalone carriage-return and scripted setup question tests.

Related Repositories