Skip to content

Fix codespace boot failure by using updateContentCommand for npm ci#208

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-codespace-boot-issue
Draft

Fix codespace boot failure by using updateContentCommand for npm ci#208
Copilot wants to merge 3 commits intomainfrom
copilot/fix-codespace-boot-issue

Conversation

Copy link
Contributor

Copilot AI commented Feb 11, 2026

Codespaces fail immediately on boot with no logs. The postCreateCommand hook times out during container creation when running npm ci.

Changes

  • .devcontainer/devcontainer.json: Replace postCreateCommand with updateContentCommand

    - "postCreateCommand": "npm ci",
    + "updateContentCommand": "npm ci",
  • CONTRIBUTING.md: Document the lifecycle hook choice and rationale

Context

The devcontainer lifecycle runs: onCreateCommandupdateContentCommandpostCreateCommandpostStartCommand.

Dependency installation belongs in updateContentCommand (runs after content sync) rather than postCreateCommand (one-time container creation, blocking, prone to timeout).


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 11, 2026 12:40
…ostCreateCommand

Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix codespace boot failure with current configuration Fix codespace boot failure by using updateContentCommand for npm ci Feb 11, 2026
Copilot AI requested a review from rajbos February 11, 2026 12:43
@rajbos
Copy link
Owner

rajbos commented Feb 11, 2026

Booting the codespace still fails on connecting, needs more info to find the issue. Might just be the image itself?

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.

2 participants

Comments