Skip to content

Multiple postAttachCommands scripts requiring input will not allow user to input response to second prompt. #10504

@ifalatiksetlog

Description

@ifalatiksetlog

When starting a devcontainer that builds upon another devcontainer which includes a postAttachCommand script defined via the devcontainer.metadata docker label, and both of the devcontainers implement postAttachCommand scripts which require user input, only the first user input will be accepted, as trying to respond to the second one results in Done. Press any key to close..

To better understand the issue I've linked a minimal reproduction setup below.

  • VSCode Version: 1.96.0-insider (system setup)
  • Local OS Version: Windows 11 Pro 23H2 22631.4460
  • Remote OS Version: debian 11 (bullseye)
  • Remote Extension/Connection Type: Containers

Steps to Reproduce:
See https://github.com/ifalatiksetlog/devcontainers-postattach-reproduction

Does this issue occur when you try this locally?: Yes/No
Does this issue occur when you try this locally and all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcontainersIssue in vscode-remote containers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions