mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-11-21 00:06:26 +00:00
systemd 258's 80-systemd-osc-context.sh turns PROMPT_COMMAND into an array with its own entry after bash-preexec's. On the first prompt round that entry ran after __bp_install had armed preexec and cleared the flag, while the __bp_interactive_mode appended by install only runs from the next round, so the first command of every new pane got no 133;C or 133;D. A PROMPT_COMMAND entry now leaves the flag alone instead of spending it. Reproduced on Ubuntu 26.04 (bash 5.3), which the CI Linux runners now use: cli_e2e's capture_still_answers_after_a_resize and exec_returns_the_commands_output_and_exit_code failed there on every PR.