mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2025-12-21 15:24:20 +01:00
feat: improve interactivity by predict sessions
This commit is contained in:
@@ -27,13 +27,13 @@ export const initialize = async (deps: {
|
||||
|
||||
console.log("Initializing sessions cache");
|
||||
const results = await Promise.all(
|
||||
projects.map((project) => deps.sessionRepository.getSessions(project.id))
|
||||
projects.map((project) => deps.sessionRepository.getSessions(project.id)),
|
||||
);
|
||||
console.log(
|
||||
`${results.reduce(
|
||||
(s, { sessions }) => s + sessions.length,
|
||||
0
|
||||
)} sessions cache initialized`
|
||||
0,
|
||||
)} sessions cache initialized`,
|
||||
);
|
||||
} catch {
|
||||
// do nothing
|
||||
|
||||
Reference in New Issue
Block a user