- Notifications
You must be signed in to change notification settings - Fork1.1k
feat(agent/agentcontainers): support apps for dev container agents#18346
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
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
eb8a4690dc5bb2bcd668991fd4e7c273b2386981008ec61b6ab2e82e4db77afd3a258320e832a336997b0ae2616e17b228d1da3a1c6652a1File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -50,10 +50,17 @@ func (a *agent) apiHandler(aAPI proto.DRPCAgentClient26) (http.Handler, func() e | ||
| } | ||
| manifest := a.manifest.Load() | ||
| if manifest != nil && len(manifest.Devcontainers) > 0 { | ||
| containerAPIOpts = append(containerAPIOpts, | ||
| agentcontainers.WithUserName(manifest.OwnerName), | ||
| agentcontainers.WithWorkspaceName(manifest.WorkspaceName), | ||
| ||
| ) | ||
| if len(manifest.Devcontainers) > 0 { | ||
| containerAPIOpts = append( | ||
| containerAPIOpts, | ||
| agentcontainers.WithDevcontainers(manifest.Devcontainers, manifest.Scripts), | ||
| ) | ||
| } | ||
DanielleMaywood marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| } | ||
| // Append after to allow the agent options to override the default options. | ||