We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52875a4 commit ad39074Copy full SHA for ad39074
agent/agentcontainers/api.go
@@ -585,8 +585,9 @@ func (api *API) processUpdatedContainersLocked(ctx context.Context, updated code
585
if !api.devcontainerNames[dc.Name] {
586
// If the devcontainer name wasn't set via terraform, we
587
// will attempt to create an agent name based on the workspace
588
- // folder's name. If that is not possible, we will fall back
589
- // to using the container's friendly name.
+ // folder's name. If it is not possible to generate a valid
+ // agent name based off of the folder name (i.e. no valid characters),
590
+ // we will instead fall back to using the container's friendly name.
591
dc.Name = safeAgentName(filepath.Base(dc.WorkspaceFolder), dc.Container.FriendlyName)
592
}
593
0 commit comments