@ai-matrx/coding-sessions 0.3.0 → 0.3.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.
@@ -1468,6 +1468,7 @@ var import_node_path5 = __toESM(require("path"), 1);
1468
1468
 
1469
1469
  // src/sessions/titles.ts
1470
1470
  var TITLE_MAX = 300;
1471
+ var UNTITLED = "(untitled)";
1471
1472
  var BRIDGE_PLACEHOLDER = /^AI Matrx · [a-z-]+$/;
1472
1473
  var TITLE_PRECEDENCE = [
1473
1474
  /** The person's rename inside Matrx (Coding Sessions' preference). */
@@ -1771,7 +1772,8 @@ async function describeCodex(candidate, names) {
1771
1772
  }
1772
1773
  }
1773
1774
  if (isSubAgent) return null;
1774
- const resolved = resolveSessionTitle({ app: names.get(candidate.id), "first-prompt": firstPrompt });
1775
+ const found = resolveSessionTitle({ app: names.get(candidate.id), "first-prompt": firstPrompt });
1776
+ const resolved = found ?? (candidate.size > HEAD_BYTES ? { title: UNTITLED, source: "unknown" } : null);
1775
1777
  if (!resolved) return null;
1776
1778
  return {
1777
1779
  provider: "codex",
@@ -2158,7 +2160,7 @@ function overlayHint(chat, hints, expected) {
2158
2160
  if (!expected) return chat;
2159
2161
  if (hints === null) return { ...chat, titlePending: true };
2160
2162
  const hint = hints.get(titleHintKey(chat.provider, chat.providerSessionId));
2161
- if (!hint) return chat;
2163
+ if (!hint) return chat.titleSource === "unknown" ? { ...chat, unlisted: true } : chat;
2162
2164
  return {
2163
2165
  ...chat,
2164
2166
  title: hint.title,