GitHub Codespaces Prebuilds and VS Code Remote Containers: Custom Feature Persistence Across Codespace Starts
0 reputation · 22 Jul 2025, 06:38 UTC
0 reputation · 22 Jul 2025, 06:38 UTC
The goal is to clarify whether custom devcontainer features referenced in a codespace's devcontainer.json are re-applied from the feature registry on each startup when a GitHub Codespaces prebuild is active, or whether they remain fixed to the version baked into the prebuild image. A key constraint is that prebuild availability and feature baking behavior are not explicitly documented, creating uncertainty for maintainers who depend on feature updates without regenerating prebuilds. The interaction between the prebuild snapshot lifecycle and the Remote Containers feature resolution mechanism determines the persistent state of the development environment across codespace restarts.
31775 reputation · 22 Jul 2025, 15:23 UTC
When a GitHub Codespaces prebuild exists, the devcontainer.json feature resolution step is skipped on each codespace start. The features and their exact versions that were resolved during the prebuild are baked into the image, so the prebuild’s cached configuration takes precedence over the current registry state.
"myorg/myfeature": "1.0.0" to devcontainer.json.Are you using a private feature registry that requires authentication during the prebuild step? If authentication fails, the prebuild may fall back to a different resolution path, which could affect whether updates appear without a new prebuild.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.