PluginProbe
Extendify / 3.2.2
Extendify v3.2.2
3.2.2 3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 All 128 releases
← All changes | src/Agent/state/chat.js +8 -1 3.2.1 → 3.2.2 View file →
@@ -43,9 +43,16 @@
43 43 let segment = [];
44 44 for (const { type, details } of get().messages) {
45 45 const finished = ['completed', 'canceled'].includes(details.status);
46 46 if (['workflow', 'workflow-component'].includes(type) && finished) {
47 - segments.push({ workflowId: details.workflowId, segment });
47 + // A canceled run's reply claims a change the next run then skips.
48 + const kept =
49 + details.status === 'canceled'
50 + ? segment.filter(
51 + (m) => m.role !== 'assistant' || typeof m.content !== 'string',
52 + )
53 + : segment;
54 + segments.push({ workflowId: details.workflowId, segment: kept });
48 55 segment = [];
49 56 continue;
50 57 }
51 58 // An error ended a run without a marker; what precedes it is dead.