@gabrihhh/jarvis 2.6.1 → 2.6.2

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/package.json +1 -1
  2. package/src/reader.js +1 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gabrihhh/jarvis",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "Claude Code terminal dashboard + semantic memory graph via Neo4j",
5
5
  "bin": {
6
6
  "jarvis": "bin/jarvis.js",
package/src/reader.js CHANGED
@@ -135,29 +135,7 @@ export function getCurrentSessionFile() {
135
135
  pid = getParentPid(pid);
136
136
  }
137
137
 
138
- // Fallback: find a session whose sessionId appears in JSONL files
139
- const sessionFiles = readdirSync(sessionsDir)
140
- .map(f => {
141
- try { return JSON.parse(readFileSync(join(sessionsDir, f), 'utf-8')); }
142
- catch { return null; }
143
- })
144
- .filter(Boolean);
145
-
146
- if (!sessionFiles.length) return null;
147
-
148
- const allFiles = getAllSessionFiles();
149
- const sessionIdSet = new Set();
150
- for (const file of allFiles) {
151
- try {
152
- const lines = readFileSync(file, 'utf-8').split('\n').filter(l => l.trim());
153
- for (const line of lines.slice(-5)) {
154
- try { const obj = JSON.parse(line); if (obj.sessionId) sessionIdSet.add(obj.sessionId); }
155
- catch { /* skip */ }
156
- }
157
- } catch { /* skip */ }
158
- }
159
-
160
- return sessionFiles.find(s => sessionIdSet.has(s.sessionId)) || sessionFiles[0];
138
+ return null;
161
139
  } catch {
162
140
  return null;
163
141
  }