devez-vibe 1.2.30 → 1.2.31
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/bin/dvz.exe
CHANGED
|
Binary file
|
|
@@ -1533,8 +1533,17 @@ function contentBlocks(message) {
|
|
|
1533
1533
|
return Array.isArray(content) ? content : [];
|
|
1534
1534
|
}
|
|
1535
1535
|
|
|
1536
|
+
// A compaction summary is replayed as a user message even though the user never
|
|
1537
|
+
// wrote it: showing it puts a wall of recap text where the resumed conversation
|
|
1538
|
+
// should start.
|
|
1539
|
+
function isCompactSummary(message, text) {
|
|
1540
|
+
return message.isCompactSummary === true
|
|
1541
|
+
|| /^(this session is being continued from|caveat: the messages below were generated)/i.test(text.trim());
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1536
1544
|
function isInternalHistoryText(message, text) {
|
|
1537
1545
|
if (message.isMeta || message.subtype === "local_command") return true;
|
|
1546
|
+
if (isCompactSummary(message, text)) return true;
|
|
1538
1547
|
const trimmed = text.trim();
|
|
1539
1548
|
const tag = trimmed.match(/^<([a-z0-9-]+)>/i)?.[1]?.toLowerCase();
|
|
1540
1549
|
return trimmed === "[Request interrupted by user]"
|