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: e7d5fd8ee1c180d8083b77c3324d138678276d8bbc471dfa48c51d43ae0cca06
4
- data.tar.gz: ec08e6a76392e28d5ef6b6a88adac7712bb60887eca9643d02227f556c7d472a
3
+ metadata.gz: df6f7d762ab28802603ffb217a64d0fce08df13bf2a25390d2ee92d7249a7daa
4
+ data.tar.gz: 1c8b2cecb38112764ed4859c06fee2bd4228e80993198fc8e340672e56e1a41e
5
5
  SHA512:
6
- metadata.gz: c82d88fd5a6cc8cf77330773b7eff552a3bfb7db291627ab0aef5dc3e8e178cee829389a0f72abd1938e4610c04878f3688e0963091a5361f6ae9dcea9f63b4c
7
- data.tar.gz: 7ecb2081edefc0da28093bb5eb2b3cd26da316926349093bf51a36c7308073b5387279d3723a0a814c05f3a79dd7a4b17df07c7f479cc132f0fbeb75d5b64f88
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
- if Object.respond_to?(:register_session, true) && !@suppress_global_forward
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
@@ -3,7 +3,7 @@
3
3
  module Brainiac
4
4
  module Plugins
5
5
  module Basecamp
6
- VERSION = "0.0.19"
6
+ VERSION = "0.0.20"
7
7
  end
8
8
  end
9
9
  end
@@ -115,9 +115,16 @@ module Brainiac
115
115
  reconcile_task(epic, task, triggered_by: triggered_by)
116
116
  end.any?
117
117
 
118
- Orchestrator.send(:dispatch_unblocked_tasks, epic) if changed
119
- Orchestrator.send(:save_epic, epic) if changed
120
- changed
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brainiac-basecamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Davis