@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/engine/index.js
CHANGED
|
@@ -1452,6 +1452,7 @@ import path5 from "path";
|
|
|
1452
1452
|
|
|
1453
1453
|
// src/sessions/titles.ts
|
|
1454
1454
|
var TITLE_MAX = 300;
|
|
1455
|
+
var UNTITLED = "(untitled)";
|
|
1455
1456
|
var BRIDGE_PLACEHOLDER = /^AI Matrx · [a-z-]+$/;
|
|
1456
1457
|
var TITLE_PRECEDENCE = [
|
|
1457
1458
|
/** The person's rename inside Matrx (Coding Sessions' preference). */
|
|
@@ -1755,7 +1756,8 @@ async function describeCodex(candidate, names) {
|
|
|
1755
1756
|
}
|
|
1756
1757
|
}
|
|
1757
1758
|
if (isSubAgent) return null;
|
|
1758
|
-
const
|
|
1759
|
+
const found = resolveSessionTitle({ app: names.get(candidate.id), "first-prompt": firstPrompt });
|
|
1760
|
+
const resolved = found ?? (candidate.size > HEAD_BYTES ? { title: UNTITLED, source: "unknown" } : null);
|
|
1759
1761
|
if (!resolved) return null;
|
|
1760
1762
|
return {
|
|
1761
1763
|
provider: "codex",
|