[Bug] Shell snapshot duplicates hyphens in alias names causing tool errors

Status Fixed / completed
Reported on v2.1.12
Maintainer reply None cached
Activity 3 comments · opened Jan 19, 2026 · closed Jan 19, 2026

Bug Description
The shell snapshot feature does not correctly handle aliases with - ~in the name~ in the command. The snapshot tool seems to duplicate the hyphens which cause the bash tool to report errors despite running successfully below the error. This has misled the agent on a few occasions. Removing the alias resolved the problem. Example: alias -- -='cd ..'. I introduce this alias via .bashrc but I believe the alias source to be unrelated.

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 2.1.12
  • Feedback ID: 31e8f344-a63c-41ab-a7da-0e54ece26c1c

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗