feat(tui): show project copy in session list (#31421)

This commit is contained in:
James Long 2026-06-09 12:10:37 -04:00 committed by GitHub
commit ffcb45d7c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 59 additions and 37 deletions

View file

@ -59,9 +59,11 @@ describe("Project directories schemas", () => {
projectID: ProjectV2.ID.make("project"),
},
)
expect(Schema.decodeUnknownSync(ProjectV2.Directories)([AbsolutePath.make("/tmp/project")])).toEqual([
AbsolutePath.make("/tmp/project"),
])
expect(
Schema.decodeUnknownSync(ProjectV2.Directories)([
{ directory: AbsolutePath.make("/tmp/project"), type: "main" },
]),
).toEqual([{ directory: AbsolutePath.make("/tmp/project"), type: "main" }])
}),
)
@ -90,8 +92,8 @@ describe("Project directories schemas", () => {
.pipe(Effect.orDie)
expect(yield* project.directories({ projectID })).toEqual([
AbsolutePath.make("/repo/z"),
AbsolutePath.make("/repo/a"),
{ directory: AbsolutePath.make("/repo/z"), type: "root" },
{ directory: AbsolutePath.make("/repo/a"), type: "main" },
])
}),
)