Background bash notifications replay repeatedly after command completes
Description
Background bash task notifications get replayed repeatedly across multiple conversation turns even after the command has completed successfully.
Observed Behavior
- Ran a bash command with
run_in_background: true:
````
ssh -v -o BatchMode=yes -o ConnectTimeout=10 -i ~/.ssh/id_rsa user@host "hostname" 2>&1 | tail -20
- Command completed successfully and I received results
- On every subsequent turn, I kept receiving:
``xml``
<system-reminder>
Background Bash cb0c5f (command: ssh -v ...) (status: running) Has new output available.
You can check its output using the BashOutput tool.
</system-reminder>
- The notification shows status "running" even though the command finished long ago
- This repeated on every single turn for the rest of the session (10+ times)
Expected Behavior
- Background task notifications should only appear once when there's genuinely new output
- Completed tasks should not show status "running"
- No replay of stale notifications
Environment
- Platform: Android/Termux (Linux 6.1.134-android14)
- Session had heavy use of
run_in_background: truefor TTS commands (~20+ background calls)
Possible Related Issue
During the same session, "Human" messages appeared in the conversation that the user did not send - possibly related to message/event replay.
Reproduction
Long session with many background bash commands using run_in_background: true, particularly frequent short-lived commands like TTS calls.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗