meta_workflows 0.9.44 → 0.9.46

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a85e56497d67aea442295a210ad6b1726d5a7284b69a669b1cee2d1400fb161
4
- data.tar.gz: c768c0e150f532e4007948f696c92c3907b956c266b8f95aa1284ab489912a03
3
+ metadata.gz: dbcfa55a0db6a07e22112f35a21c606b76fb9e24f55ca4222002e6fe3c9b68f6
4
+ data.tar.gz: 568f9a5c395957f878a8101a15221fe6ef99353c43eaab2448833c810c6245b1
5
5
  SHA512:
6
- metadata.gz: df65f1be94b903d501bc91c7f07fed43fce3a23912b608d6df80218a17fee3d83c4b644ce1c6e220763976fb99f5a200807ae02754df5638bdc18bda9f327712
7
- data.tar.gz: 2dc5082e320a0732dda26b26fb09a24b3948d6e2cd7afc7faae67f9c98c4b87e488881bbbf41ef15093a1bd83d7467f143aa5221787f02112c498d0ffd55cf02
6
+ metadata.gz: a773e6331211697f24b12803af9aee8de61559bf11bae54e1c523af5ff602b91c9ff973c10ce5a3343cd2bad4faf1608d28b6222b7664a433bc297670b6088e1
7
+ data.tar.gz: 244396bd652bcedc5f3efb7542a823b74e2ddf9be4f2f0a01eb2de18918aeeec18bd7396eb31a338e6aa1ea54ccca445348a1a317a78fafd842a42d4471b6b74
@@ -76,9 +76,10 @@ module MetaWorkflows
76
76
 
77
77
  def finalize_conversation(conversation)
78
78
  chat.update!(conversation_id: conversation.id) if chat.conversation_id.blank?
79
- persist_messages_to_history
80
79
  return if auto_advancing
81
80
 
81
+ persist_messages_to_history
82
+
82
83
  broadcast_form(chat)
83
84
  broadcast_structured_input(chat)
84
85
  end
@@ -13,7 +13,11 @@ module MetaWorkflows
13
13
  def call
14
14
  return build_empty_data if @workflow_id.nil?
15
15
 
16
- executions = @record.workflow_executions&.where(workflow_id: @workflow_id)
16
+ executions = @record.workflow_executions&.where(
17
+ workflow_id: @workflow_id,
18
+ completed: false,
19
+ created_at: 1.minute.ago..
20
+ )
17
21
  active_execution = executions&.order(created_at: :desc)&.first
18
22
 
19
23
  if active_execution
@@ -3,7 +3,7 @@
3
3
  module MetaWorkflows
4
4
  MAJOR = 0
5
5
  MINOR = 9
6
- PATCH = 44 # this is automatically incremented by the build process
6
+ PATCH = 46 # this is automatically incremented by the build process
7
7
 
8
8
  VERSION = "#{MetaWorkflows::MAJOR}.#{MetaWorkflows::MINOR}.#{MetaWorkflows::PATCH}".freeze
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta_workflows
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.44
4
+ version: 0.9.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Medovyy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-07-31 00:00:00.000000000 Z
12
+ date: 2025-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails