Finish cleanup through the normal invocation lifecycle

This commit is contained in:
2026-11-30 13:58:52 +00:00
parent 03c16df524
commit c00c8169e2
4 changed files with 78 additions and 17 deletions

View File

@@ -95,7 +95,6 @@ func (s *LocalStore) ensureLayout(paths SessionPaths) (SessionPaths, error) {
paths.TranscriptsRawDir,
paths.ArtifactsDir,
paths.LogsDir,
paths.RunsDir,
paths.PreviousDir,
paths.PreviousArtifactsDir,
}

View File

@@ -25,7 +25,9 @@ func TestEnsureLayoutCreatesExpectedDirectories(t *testing.T) {
checkDirExists(t, paths.TranscriptsRawDir)
checkDirExists(t, paths.ArtifactsDir)
checkDirExists(t, paths.LogsDir)
checkDirExists(t, paths.RunsDir)
if _, err := os.Lstat(paths.RunsDir); !os.IsNotExist(err) {
t.Fatalf("layout created runs directory: %v", err)
}
checkDirExists(t, paths.PreviousDir)
checkDirExists(t, paths.PreviousArtifactsDir)