@aiplumber/session-recall 1.9.3 → 1.9.4

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/session-recall +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiplumber/session-recall",
3
- "version": "1.9.3",
3
+ "version": "1.9.4",
4
4
  "description": "Pull context from previous Claude Code sessions. Sessions end, context resets - this tool lets you continue where you left off.",
5
5
  "bin": {
6
6
  "session-recall": "./session-recall"
package/session-recall CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const VERSION = '1.9.3';
3
+ const VERSION = '1.9.4';
4
4
 
5
5
  const fs = require('fs');
6
6
  const path = require('path');
@@ -1341,8 +1341,9 @@ async function cmdLast(arg1, arg2, opts) {
1341
1341
  let compactions = session.compactionMarkers || scanCompactionMarkers(session.msgs);
1342
1342
 
1343
1343
  // If no compactions in current session, check previous session (new session fallback)
1344
- if (compactions.length === 0 && inactiveSessions.length > 1) {
1345
- const prevSession = inactiveSessions[1];
1344
+ // Use allSessions not inactiveSessions - recently compacted sessions may still be "active"
1345
+ if (compactions.length === 0 && allSessions.length > 1) {
1346
+ const prevSession = allSessions[1];
1346
1347
  // Load previous session if not already loaded
1347
1348
  if (!prevSession.msgs) {
1348
1349
  const stats = fs.statSync(prevSession.filePath);