@ai-matrx/coding-sessions 0.3.0 → 0.3.1

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.
@@ -1424,6 +1424,7 @@ import path5 from "path";
1424
1424
 
1425
1425
  // src/sessions/titles.ts
1426
1426
  var TITLE_MAX = 300;
1427
+ var UNTITLED = "(untitled)";
1427
1428
  var BRIDGE_PLACEHOLDER = /^AI Matrx · [a-z-]+$/;
1428
1429
  var TITLE_PRECEDENCE = [
1429
1430
  /** The person's rename inside Matrx (Coding Sessions' preference). */
@@ -1727,7 +1728,8 @@ async function describeCodex(candidate, names) {
1727
1728
  }
1728
1729
  }
1729
1730
  if (isSubAgent) return null;
1730
- const resolved = resolveSessionTitle({ app: names.get(candidate.id), "first-prompt": firstPrompt });
1731
+ const found = resolveSessionTitle({ app: names.get(candidate.id), "first-prompt": firstPrompt });
1732
+ const resolved = found ?? (candidate.size > HEAD_BYTES ? { title: UNTITLED, source: "unknown" } : null);
1731
1733
  if (!resolved) return null;
1732
1734
  return {
1733
1735
  provider: "codex",