fix(agent): fix unexpanded devcontainer paths for agentcontainers (#17736)

Devcontainers were duplicated in the API because paths weren't
absolute, we now normalize them early on to keep it simple.

Updates #16424
This commit is contained in:
Mathias Fredriksson
2025-05-12 14:03:40 +03:00
committed by GitHub
parent bd659142c8
commit 7af188bfc1
4 changed files with 26 additions and 13 deletions
+1 -3
View File
@@ -242,9 +242,7 @@ func TestExtractAndInitializeDevcontainerScripts(t *testing.T) {
}
}
gotFilteredScripts, gotDevcontainerScripts := agentcontainers.ExtractAndInitializeDevcontainerScripts(
logger,
tt.args.expandPath,
tt.args.devcontainers,
agentcontainers.ExpandAllDevcontainerPaths(logger, tt.args.expandPath, tt.args.devcontainers),
tt.args.scripts,
)