agenthud 0.5.13 → 0.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1935,7 +1935,12 @@ function getOtherSessionsData(currentProjectPath, options2 = {}) {
|
|
|
1935
1935
|
return defaultResult;
|
|
1936
1936
|
}
|
|
1937
1937
|
otherSessions.sort((a, b) => b.mtimeMs - a.mtimeMs);
|
|
1938
|
-
|
|
1938
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1939
|
+
defaultResult.projectNames = otherSessions.map((s) => s.projectName).filter((name) => {
|
|
1940
|
+
if (seen.has(name)) return false;
|
|
1941
|
+
seen.add(name);
|
|
1942
|
+
return true;
|
|
1943
|
+
});
|
|
1939
1944
|
const mostRecent = otherSessions[0];
|
|
1940
1945
|
const lastMessage = parseLastAssistantMessage(mostRecent.sessionFile);
|
|
1941
1946
|
const isActive = now - mostRecent.mtimeMs < activeThresholdMs;
|
package/package.json
CHANGED