Skip to content

[BUG]: ghcs accidentally deleted shell history #99

Closed
@WhoSayIn

Description

What happened?

Tried to use the alias ghcs on MacOS Sonoma 14.5 with zsh. After executing a simple command that was suggested, all my command line history got deleted. (suggested code had nothing to do with deleting the history. It was the first time ever I use this.)

Versions

gh v2.57.0, gh-copilot1.0.5 (2024-09-12)

Relevant terminal output

>  ghcs "print current date time"


Welcome to GitHub Copilot in the CLI!
version 1.0.5 (2024-09-12)

I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency

Suggestion:

  date "+%Y-%m-%d %H:%M:%S"

? Select an option
> Execute command

? Are you sure you want to execute the suggested command?
> Yes
History file deleted.
omz_history:fc:14: event not found: date "+%Y-%m-%d %H:%M:%S"

2024-09-30 16:18:43

Metadata

Assignees

Labels

bugSomething isn't workingneeds-triageneeds to be reviewed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions