@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.
- package/CHANGELOG.md +6 -0
- package/dist/engine/index.cjs +3 -1
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.js +3 -1
- package/dist/engine/index.js.map +1 -1
- package/dist/server/index.cjs +3 -1
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +3 -1
- package/dist/server/index.js.map +1 -1
- package/package.json +3 -3
package/dist/server/index.cjs
CHANGED
|
@@ -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
|
|
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",
|