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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. 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
- defaultResult.projectNames = otherSessions.map((s) => s.projectName);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agenthud",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "description": "CLI tool to monitor agent status in real-time. Works with Claude Code, multi-agent workflows, and any AI agent system.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",