Context
PR #37 added cross-agent diff review. The review agent is spawned via this.run(reviewTask, "/tmp"), which inserts the review task into _runningTasks. During review (~60s), API callers see a ghost task in getRunningTasks() that can't be resolved by getTask().
Options
- Add a
_isReviewTask flag and filter in getRunningTasks()
- Use a separate
AgentRunner instance for reviews
- Accept the brief visibility (document it)
Impact
Low — the ghost task disappears after review completes. But it's confusing for dashboard consumers.
Ref: #37
Context
PR #37 added cross-agent diff review. The review agent is spawned via
this.run(reviewTask, "/tmp"), which inserts the review task into_runningTasks. During review (~60s), API callers see a ghost task ingetRunningTasks()that can't be resolved bygetTask().Options
_isReviewTaskflag and filter ingetRunningTasks()AgentRunnerinstance for reviewsImpact
Low — the ghost task disappears after review completes. But it's confusing for dashboard consumers.
Ref: #37