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

Commit7e5ede0

Browse files
committed
review comments
1 parentd4f208b commit7e5ede0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

‎agent/agentcontainers/api.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,15 +1100,13 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
11001100
directory=DevcontainerDefaultContainerWorkspaceFolder
11011101
}
11021102

1103-
ifproc.agent.ID!=uuid.Nil {
1104-
ifrecreateSubAgent {
1105-
logger.Debug(ctx,"deleting existing subagent for recreation",slog.F("agent_id",proc.agent.ID))
1106-
err=api.subAgentClient.Delete(ctx,proc.agent.ID)
1107-
iferr!=nil {
1108-
returnxerrors.Errorf("delete existing subagent failed: %w",err)
1109-
}
1110-
proc.agent=SubAgent{}
1103+
ifproc.agent.ID!=uuid.Nil&&recreateSubAgent {
1104+
logger.Debug(ctx,"deleting existing subagent for recreation",slog.F("agent_id",proc.agent.ID))
1105+
err=api.subAgentClient.Delete(ctx,proc.agent.ID)
1106+
iferr!=nil {
1107+
returnxerrors.Errorf("delete existing subagent failed: %w",err)
11111108
}
1109+
proc.agent=SubAgent{}
11121110
}
11131111
ifproc.agent.ID==uuid.Nil {
11141112
displayAppsMap:=map[codersdk.DisplayApp]bool{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp