refactor(session): pass project to list (#25215)

This commit is contained in:
Kit Langton
2026-04-30 23:00:59 -04:00
committed by GitHub
parent 3c24d22d42
commit 8b56d1712f
6 changed files with 79 additions and 64 deletions
+1 -4
View File
@@ -245,10 +245,7 @@ export const ExportCommand = cmd({
output: process.stderr,
})
const sessions = []
for await (const session of Session.list()) {
sessions.push(session)
}
const sessions = await AppRuntime.runPromise(Session.Service.use((svc) => svc.list()))
if (sessions.length === 0) {
prompts.log.error("No sessions found", {