789 B
789 B
Builder Report: fix _inject_command edit option for tee pipe context
TL;DR
- Status: DONE
- File changed:
bin/pos-ai(lines 399–421 replaced) - Fix: replaced
read -e -i(readline) with plainread -rso theeoption works through the dispatcher'steepipe - Verification:
bash -nOK, gates pending
Step 1: Replace read -e -i with plain read -r in _inject_command
Target: bin/pos-ai lines 410–421
Replaced the readline-based edit prompt with a simpler approach that:
- Shows the flattened command
- Asks user to type a replacement or press Enter for the original
- Uses plain
read -rwhich works in any context (tee pipes, SSH, non-TTY)
Removed the "Empty command — skipped" message — empty input now runs the original.
[PENDING]