Files
deepseek-harness/packages/shell/tool-bash-persistent/src
gengruilin 967ba4c4b8 fix(tools): disable history expansion in the persistent bash shell
The persistent bash tool types each wrapped command into an interactive
bash, which applies history expansion before parsing. A `!` after a single
quote made bash reject the whole line with `event not found`, so neither
marker printed and the call waited for the full timeout; `!!` silently
substituted the previous history entry.

Disable history expansion when the shell is initialized, as OpenHands does
for its interactive terminal. Raw control characters other than newline and
carriage return still reach readline as typed keys; the README records that
limitation.
2026-10-21 11:00:34 +08:00
..