Codex Desktop environments need a "teardown" config

Resolved 💬 2 comments Opened Feb 3, 2026 by corrylc Closed May 10, 2026

What feature would you like to see?

Codex Desktop added the (extremely useful) idea of environments, but didn't add the ability to set a teardown step/script.

While this wasn't necessary for Codex Web, where the whole environment is destroyed, it is very necessary for local development.

For example, if the environment for a project creates a Docker Compose stack during setup, we would want to run docker-compose down when the environment/worktree is closed out.

Additional information

_No response_

View original on GitHub ↗

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