osborn 0.9.292 → 0.9.294

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/config.js +7 -3
  2. 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
- lastActivityAt: tail.lastTs ?? head.lastTs,
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 = 4;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osborn",
3
- "version": "0.9.292",
3
+ "version": "0.9.294",
4
4
  "description": "Voice AI coding assistant - local agent that connects to Osborn frontend",
5
5
  "type": "module",
6
6
  "bin": {