@agenticmail/enterprise 0.5.222 → 0.5.223

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.
@@ -767,12 +767,17 @@ export function TaskPipelinePage() {
767
767
  } else if (i === 0 && ct.createdBy === 'system') {
768
768
  steps.push({ label: 'System', type: 'system', isHuman: false, status: null, arrow: 'assigned' });
769
769
  }
770
- steps.push({ label: ct.assignedToName || ct.assignedTo, type: 'agent', isHuman: false, status: ct.status, taskId: ct.id, arrow: i < expandedChain.length - 1 ? (expandedChain[i + 1].delegationType || 'delegation') : null, duration: ct.actualDurationMs, progress: ct.progress });
770
+ var nextArrow = i < expandedChain.length - 1 ? (expandedChain[i + 1].delegationType || 'delegation') : null;
771
+ steps.push({ label: ct.assignedToName || ct.assignedTo, type: 'agent', isHuman: false, status: ct.status, taskId: ct.id, arrow: nextArrow, duration: ct.actualDurationMs, progress: ct.progress });
771
772
  });
772
- // Add final status node
773
+ // Add final status node + ensure arrow from last agent to terminal
773
774
  var lastTask = expandedChain[expandedChain.length - 1];
774
775
  var isDone = lastTask.status === 'completed' || lastTask.status === 'failed' || lastTask.status === 'cancelled';
775
776
  if (isDone) {
777
+ // Set arrow on the last non-terminal step so the connector draws
778
+ if (steps.length > 0 && !steps[steps.length - 1].arrow) {
779
+ steps[steps.length - 1].arrow = lastTask.status;
780
+ }
776
781
  steps.push({ label: lastTask.status === 'completed' ? 'Completed!' : lastTask.status === 'failed' ? 'Failed' : 'Cancelled', type: 'terminal', isHuman: false, status: lastTask.status, arrow: null });
777
782
  }
778
783
 
@@ -805,7 +810,7 @@ export function TaskPipelinePage() {
805
810
  )
806
811
  ),
807
812
  steps.map(function(step, i) {
808
- if (i === steps.length - 1 || !step.arrow) return null;
813
+ if (!step.arrow || i >= steps.length - 1) return null;
809
814
  var x1 = i * (STEP_W + STEP_GAP) + STEP_W;
810
815
  var x2 = (i + 1) * (STEP_W + STEP_GAP);
811
816
  var y = 4 + STEP_H / 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.222",
3
+ "version": "0.5.223",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -767,12 +767,17 @@ export function TaskPipelinePage() {
767
767
  } else if (i === 0 && ct.createdBy === 'system') {
768
768
  steps.push({ label: 'System', type: 'system', isHuman: false, status: null, arrow: 'assigned' });
769
769
  }
770
- steps.push({ label: ct.assignedToName || ct.assignedTo, type: 'agent', isHuman: false, status: ct.status, taskId: ct.id, arrow: i < expandedChain.length - 1 ? (expandedChain[i + 1].delegationType || 'delegation') : null, duration: ct.actualDurationMs, progress: ct.progress });
770
+ var nextArrow = i < expandedChain.length - 1 ? (expandedChain[i + 1].delegationType || 'delegation') : null;
771
+ steps.push({ label: ct.assignedToName || ct.assignedTo, type: 'agent', isHuman: false, status: ct.status, taskId: ct.id, arrow: nextArrow, duration: ct.actualDurationMs, progress: ct.progress });
771
772
  });
772
- // Add final status node
773
+ // Add final status node + ensure arrow from last agent to terminal
773
774
  var lastTask = expandedChain[expandedChain.length - 1];
774
775
  var isDone = lastTask.status === 'completed' || lastTask.status === 'failed' || lastTask.status === 'cancelled';
775
776
  if (isDone) {
777
+ // Set arrow on the last non-terminal step so the connector draws
778
+ if (steps.length > 0 && !steps[steps.length - 1].arrow) {
779
+ steps[steps.length - 1].arrow = lastTask.status;
780
+ }
776
781
  steps.push({ label: lastTask.status === 'completed' ? 'Completed!' : lastTask.status === 'failed' ? 'Failed' : 'Cancelled', type: 'terminal', isHuman: false, status: lastTask.status, arrow: null });
777
782
  }
778
783
 
@@ -805,7 +810,7 @@ export function TaskPipelinePage() {
805
810
  )
806
811
  ),
807
812
  steps.map(function(step, i) {
808
- if (i === steps.length - 1 || !step.arrow) return null;
813
+ if (!step.arrow || i >= steps.length - 1) return null;
809
814
  var x1 = i * (STEP_W + STEP_GAP) + STEP_W;
810
815
  var x2 = (i + 1) * (STEP_W + STEP_GAP);
811
816
  var y = 4 + STEP_H / 2;