Skip to content

Commit 82f8e3f

Browse files
chore: move subAgentConfig.Directory assignment
1 parent 72d9e0a commit 82f8e3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/agentcontainers/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,8 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
11731173
return err
11741174
}
11751175

1176+
subAgentConfig.Directory = config.Workspace.WorkspaceFolder
1177+
11761178
// NOTE(DanielleMaywood):
11771179
// We only want to take an agent name specified in the root customization layer.
11781180
// This restricts the ability for a feature to specify the agent name. We may revisit
@@ -1213,8 +1215,6 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
12131215
appsWithPossibleDuplicates = append(appsWithPossibleDuplicates, customization.Apps...)
12141216
}
12151217

1216-
subAgentConfig.Directory = config.Workspace.WorkspaceFolder
1217-
12181218
return nil
12191219
}(); err != nil {
12201220
api.logger.Error(ctx, "unable to read devcontainer config", slog.Error(err))

0 commit comments

Comments
 (0)