Codex Desktop environments need a "teardown" config

Resolved 💬 2 comments Opened Feb 3, 2026 by corrylc Closed May 10, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

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 ↗

2 Comments

btraut · 6 months ago

+1

I've had to hack around this by creating a "start" script that sets up a heartbeat and executes the teardown once the script is terminated.

etraut-openai contributor · 3 months ago

This feature request hasn't received any upvotes in multiple months, so I'm going to close it.