# Fix Devcontainer bugs/spec mismatches \(\#59020\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6aed6961556dcfc896fa64f607a8291097660035)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6aed6961556dcfc896fa64f607a8291097660035

Requested commit: 6aed6961556dcfc896fa64f607a8291097660035

Commit: 6aed6961556dcfc896fa64f607a8291097660035

Tree: 33afadbb02ee76fe242136180fea4fc3e82012cc

Author: Duncan Ogilvie

Committer: GitHub

## Message

```
Fix Devcontainer bugs/spec mismatches (#59020)

When testing Zed on our team's Devcontainer I found some missing
features/bugs/spec mismatches. Commit messages were written by hand,
code reviewed and tested manually, but everything was written by
Claude/Codex based on:

- https://github.com/devcontainers/cli
- https://github.com/devcontainers/spec

The main use case of the metadata is that you can `devcontainer exec`
and `devcontainer up` into a container Zed started (and vice versa). The
same with VSCode, it will reuse Zed's created devcontainer correctly
now. This is useful when using LLMs so they can run commands in the same
devcontainer you have open.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Fixed Dev Container compatibility and lifecycle behavior.
```

## Parents

- [613777018f5bcc6324307c1186adb66aa2050fe4](https://git.cafe/gitcafe/zed/commit/613777018f5bcc6324307c1186adb66aa2050fe4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6aed6961556dcfc896fa64f607a8291097660035?format=markdown)
