Skip to content

fix(aggregators): flush trailing log-run repeat counts#802

Open
Bartok9 wants to merge 1 commit into
RobotecAI:mainfrom
Bartok9:fix/logs-aggregator-repeat-tail
Open

fix(aggregators): flush trailing log-run repeat counts#802
Bartok9 wants to merge 1 commit into
RobotecAI:mainfrom
Bartok9:fix/logs-aggregator-repeat-tail

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 15, 2026

Copy link
Copy Markdown

Purpose

ROS2LogsAggregator.get() lost unique lines when flushing a prior duplicate run, and never reported end-of-buffer consecutive duplicates.

Proposed Changes

  • Flush each completed run as: unique line, then optional Log above repeated {k-1} times when k > 1.
  • Flush the open run at end of buffer.
  • Extend unit tests (A,A,B includes B; trailing triples; single-line).

Testing

  • Offline logic verified; tests/aggregators/test_ros2_logs_aggregator.py updated assertions.
  • Spec: specs/rai/2026-07-15-1.md (aerial dual-agent; Grok-spec + Bartok review micro-diff when Cursor cloud not mid-wired).

Duplicate check

No open PR for logs-aggregator trailing-run flush.

ROS2LogsAggregator previously only emitted \"Log above repeated N times\"
when a different log interrupted the run, and that frame overwrote the
new unique line. Flush complete runs correctly, including end-of-buffer
duplicates, and keep every unique line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant