Skip to content

Commit 6896dcb

Browse files
chore: more changes
1 parent e059946 commit 6896dcb

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

agent/agentcontainers/devcontainercli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ func (d *devcontainerCLI) ReadConfig(ctx context.Context, workspaceFolder, confi
264264
}
265265

266266
c := d.execer.CommandContext(ctx, "devcontainer", args...)
267-
c.Env = append(c.Env, env...)
267+
// c.Env = append(c.Env, env...)
268268

269269
var stdoutBuf bytes.Buffer
270270
stdoutWriters := []io.Writer{&stdoutBuf, &devcontainerCLILogWriter{ctx: ctx, logger: logger.With(slog.F("stdout", true))}}

agent/api.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,17 @@ func (a *agent) apiHandler(aAPI proto.DRPCAgentClient26) (http.Handler, func() e
5050
}
5151
manifest := a.manifest.Load()
5252
if manifest != nil && len(manifest.Devcontainers) > 0 {
53-
containerAPIOpts = append(
54-
containerAPIOpts,
55-
agentcontainers.WithDevcontainers(manifest.Devcontainers, manifest.Scripts),
53+
containerAPIOpts = append(containerAPIOpts,
54+
agentcontainers.WithUserName(manifest.OwnerName),
55+
agentcontainers.WithWorkspaceName(manifest.WorkspaceName),
5656
)
57+
58+
if len(manifest.Devcontainers) > 0 {
59+
containerAPIOpts = append(
60+
containerAPIOpts,
61+
agentcontainers.WithDevcontainers(manifest.Devcontainers, manifest.Scripts),
62+
)
63+
}
5764
}
5865

5966
// Append after to allow the agent options to override the default options.

site/src/pages/WorkspacePage/Workspace.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ export const Workspace: FC<WorkspaceProps> = ({
9999
const shouldShowProvisionerAlert =
100100
workspacePending && !haveBuildLogs && !provisionersHealthy && !isRestarting;
101101

102+
console.log(selectedResource?.agents);
103+
102104
return (
103105
<div
104106
css={{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy