neurastream 0.3.6 → 0.3.7
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/package.json +1 -1
- package/src/core/owner-topics.ts +2 -0
package/package.json
CHANGED
package/src/core/owner-topics.ts
CHANGED
|
@@ -562,6 +562,8 @@ export async function runTopics(cfg: Config, complete: Complete, opts: { close:
|
|
|
562
562
|
const rows = effectiveRows();
|
|
563
563
|
const window = newEntries(afterClosed(rows)).slice(0, WINDOW);
|
|
564
564
|
if (window.length === 0) return { lines: [statsLine(tally)], failures: 0 };
|
|
565
|
+
const last = rows.at(-1);
|
|
566
|
+
if (last !== undefined && isSegment(last) && last.open && window.at(-1)!.id === last.to) return { lines: [statsLine(tally)], failures: 0 };
|
|
565
567
|
const failed = await segmentWindow(cfg, complete, window, rows, tally);
|
|
566
568
|
const lines = failed
|
|
567
569
|
? [`topics: fail ${window[0]!.id}..${window.at(-1)!.id} ${failed.reason} in=${failed.in} out=${failed.out}`]
|