Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(agent/agentcontainer): allow lifecycle script error on devcontainer up#21020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
mafredri wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromfix-agentcontainers-issue-1137

Conversation

@mafredri
Copy link
Member

@mafredrimafredri commentedDec 1, 2025
edited
Loading

When devcontainer up fails due to a lifecycle script error like
postCreateCommand, the CLI still returns a container ID. Previously
this was discarded and the devcontainer marked as failed. Now we
continue with agent injection if a container ID is available,
allowing users to debug the issue in the running container.

Fixescoder/internal#1137


Demo (shows off short flicked of lifecycle script failing withexit 1, fixing this is not critical at this time, and we need to improve the error delivery and allow multiple errors to be shown in the UI).

Screen.Recording.2025-12-01.at.18.40.00.mov

We do, however, log this as a warning so discovery is possible:

2025-12-01 16:40:09.247 [warn]  containers: devcontainer created with errors (e.g. lifecycle script failure), container is available  devcontainer_id=a1ecfc11-b8a1-46f5-a208-90fa374c13ef  devcontainer_name=coder  workspace_folder=/home/coder/coder  config_path=/home/coder/coder/.devcontainer/devcontainer.json  container_id=31f63a3cc7c256837b0cc6cf9a2d5c66feab6e98c707f33be06c82142350caa6

…er upWhen devcontainer up fails due to a lifecycle script error likepostCreateCommand, the CLI still returns a container ID. Previouslythis was discarded and the devcontainer marked as failed. Now wecontinue with agent injection if a container ID is available,allowing users to debug the issue in the running container.Fixescoder/internal#1137
@mafredrimafredriforce-pushed thefix-agentcontainers-issue-1137 branch from333076b to96e6c63CompareDecember 1, 2025 16:41
@mafredrimafredri marked this pull request as ready for reviewDecember 1, 2025 16:45
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mtojekmtojekAwaiting requested review from mtojek

@SasSwartSasSwartAwaiting requested review from SasSwart

At least 1 approving review is required to merge this pull request.

Assignees

@mafredrimafredri

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Handle devcontainer lifecycle script failures gracefully

2 participants

@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp