brainiac-basecamp 0.0.19 → 0.0.20
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df6f7d762ab28802603ffb217a64d0fce08df13bf2a25390d2ee92d7249a7daa
|
|
4
|
+
data.tar.gz: 1c8b2cecb38112764ed4859c06fee2bd4228e80993198fc8e340672e56e1a41e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c0f4a96699a386478bdcb38e47f267c78009e42fef1ae6f3341b49e985fe19c13eb089a9e3027b17b1f11d58fade52d4062065012e466bab8c66a274e8a96e2
|
|
7
|
+
data.tar.gz: 0b42872311687c6c3db3d5d2aeaef4a8043a98cbc5f9862288b4fb21aa2097278e90c4419394e41151e2115231c60e2bfbea82112976e5ad55a6116224837040
|
|
@@ -59,8 +59,11 @@ module Brainiac
|
|
|
59
59
|
|
|
60
60
|
LOG.info "[Basecamp:SessionRegistry] Registered session: #{task_id} (pid=#{pid}, agent=#{agent_name})" if defined?(LOG)
|
|
61
61
|
|
|
62
|
-
# Also forward to the global register_session if it exists (for waybar/UI)
|
|
63
|
-
|
|
62
|
+
# Also forward to the global register_session if it exists (for waybar/UI).
|
|
63
|
+
# Skip implementation-* sessions — fizzy already registers those as card-NNNN
|
|
64
|
+
# and we don't want duplicate entries in the tray.
|
|
65
|
+
if Object.respond_to?(:register_session, true) && !@suppress_global_forward &&
|
|
66
|
+
!task_id.to_s.start_with?("implementation-")
|
|
64
67
|
begin
|
|
65
68
|
Object.send(:register_session, task_id, pid, log_file: log_file, agent_name: agent_name)
|
|
66
69
|
rescue StandardError
|
|
@@ -115,9 +115,16 @@ module Brainiac
|
|
|
115
115
|
reconcile_task(epic, task, triggered_by: triggered_by)
|
|
116
116
|
end.any?
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
# Always attempt to dispatch unblocked tasks during recovery. Even if no
|
|
119
|
+
# individual task changed state, there may be pending tasks whose
|
|
120
|
+
# dependencies are satisfied that were never dispatched (e.g., after a
|
|
121
|
+
# cancellation was reversed or an epic was healed manually).
|
|
122
|
+
has_pending = tasks.any? { |t| TaskState.in?(t, :pending) }
|
|
123
|
+
if changed || has_pending
|
|
124
|
+
Orchestrator.send(:dispatch_unblocked_tasks, epic)
|
|
125
|
+
Orchestrator.send(:save_epic, epic)
|
|
126
|
+
end
|
|
127
|
+
changed || has_pending
|
|
121
128
|
end
|
|
122
129
|
|
|
123
130
|
private
|