osborn 0.9.292 → 0.9.293
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/config.js +7 -3
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -543,6 +543,8 @@ function accumulatePreviewEntry(acc, entry) {
|
|
|
543
543
|
return;
|
|
544
544
|
if (!acc.firstTs && typeof entry.timestamp === 'string' && entry.timestamp)
|
|
545
545
|
acc.firstTs = entry.timestamp;
|
|
546
|
+
if (typeof entry.timestamp === 'string' && entry.timestamp)
|
|
547
|
+
acc.anyTs = entry.timestamp;
|
|
546
548
|
if (entry.type === 'ai-title' && typeof entry.aiTitle === 'string') {
|
|
547
549
|
const t = cleanTurnText(entry.aiTitle, 'assistant');
|
|
548
550
|
if (t)
|
|
@@ -660,7 +662,9 @@ async function getSessionPreview(filePath, fileSize) {
|
|
|
660
662
|
title: tail.aiTitle ?? head.aiTitle ?? head.firstUser,
|
|
661
663
|
messageCount,
|
|
662
664
|
firstTs: head.firstTs,
|
|
663
|
-
|
|
665
|
+
// No dated turn in the tail sample: any dated record there (a tool result), else unset
|
|
666
|
+
// so callers use the file's mtime — never the head sample's turn.
|
|
667
|
+
lastActivityAt: tail.lastTs ?? tail.anyTs,
|
|
664
668
|
};
|
|
665
669
|
}
|
|
666
670
|
finally {
|
|
@@ -781,8 +785,8 @@ export function invalidateSessionListCache() {
|
|
|
781
785
|
}
|
|
782
786
|
// Older manifests are discarded on load. v2: sanitized preview fields. v3: the
|
|
783
787
|
// large-file messageCount estimate changed, and unchanged files are never re-read.
|
|
784
|
-
// v4: the large-file count is the sampled lower bound.
|
|
785
|
-
const SESSION_MANIFEST_VERSION =
|
|
788
|
+
// v4: the large-file count is the sampled lower bound. v5: no head fallback for last activity.
|
|
789
|
+
const SESSION_MANIFEST_VERSION = 5;
|
|
786
790
|
function sessionManifestPath() {
|
|
787
791
|
return join(homedir(), '.claude', 'session-manifest.json');
|
|
788
792
|
}
|