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

Commit8b379a9

Browse files
chore: more changes
1 parente4bafc6 commit8b379a9

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
varstdoutBuf 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
ifmanifest!=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+
iflen(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
constshouldShowProvisionerAlert=
100100
workspacePending&&!haveBuildLogs&&!provisionersHealthy&&!isRestarting;
101101

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp