Skip to content

Don't delete temp dir on agent-shell-restart.#661

Open
arthurgleckler wants to merge 1 commit into
xenodium:mainfrom
arthurgleckler:main
Open

Don't delete temp dir on agent-shell-restart.#661
arthurgleckler wants to merge 1 commit into
xenodium:mainfrom
arthurgleckler:main

Conversation

@arthurgleckler

Copy link
Copy Markdown
Contributor

This is a bug fix. In shells created using agent-shell-new-temp-shell, running agent-shell-restart would trigger the hook that deleted the temporary directory, leaving no temporary directory. This prevents that.

An alternative would be to create a new temporary directory under those circumstances.

Checklist

  • I agree to communicate (PR description and comments) with the author myself (not AI-generated).
  • [x ] I've reviewed all code in PR myself and will vouch for its quality.
  • I've read and followed the Contributing guidelines.
  • [N/A ] I've filed a feature request/discussion for a new feature.
  • [N/A] I'm making visual changes, so I'm including screenshots so you can view and discuss.
  • [N/A] I've added tests where applicable.
  • [N/A] I've updated documentation where necessary.
  • [N/A] I've run M-x checkdoc and M-x byte-compile-file.

In shells created using agent-shell-new-temp-shell, running
agent-shell-restart would trigger the hook that deleted the temporary
directory, leaving no temporary directory.  This prevents that.

An alternative would be to create a new temporary directory under
those circumstances.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant