Modify ChatConversationApi to include pause state in status_count (vibe-kanban 4f35bf71)

If the workflow generating a message is paused, the status\_count should count it as paused.
This commit is contained in:
QuantumGhost
2026-01-27 18:12:13 +08:00
parent d289cf4824
commit 6cd62971c8
5 changed files with 230 additions and 1 deletions

View File

@ -868,6 +868,7 @@ class Conversation(Base):
WorkflowExecutionStatus.FAILED: 0,
WorkflowExecutionStatus.STOPPED: 0,
WorkflowExecutionStatus.PARTIAL_SUCCEEDED: 0,
WorkflowExecutionStatus.PAUSED: 0,
}
for message in messages:
@ -888,6 +889,7 @@ class Conversation(Base):
"success": status_counts[WorkflowExecutionStatus.SUCCEEDED],
"failed": status_counts[WorkflowExecutionStatus.FAILED],
"partial_success": status_counts[WorkflowExecutionStatus.PARTIAL_SUCCEEDED],
"paused": status_counts[WorkflowExecutionStatus.PAUSED],
}
@property