Skip to content

feat(sensor): apply log lookback to Cline - #88

Open
barisozbas wants to merge 2 commits into
mainfrom
pr/cline-log-lookback
Open

feat(sensor): apply log lookback to Cline#88
barisozbas wants to merge 2 commits into
mainfrom
pr/cline-log-lookback

Conversation

@barisozbas

Copy link
Copy Markdown
Collaborator

What changed

Cline task collection now honors the configured log-lookback window.

  • Passes the observer's maximum log age into the Cline parser.
  • Skips task directories that are definitively older than the cutoff.
  • Retains otherwise readable tasks when file metadata cannot be read.

Why

Cline was the remaining parser that ignored the shared lookback setting. Treating a metadata lookup failure as an old task would also silently discard valid activity.

Validation

  • pytest -q Sensor/tests
  • ruff check Sensor/adr_sensor/observer.py Sensor/adr_sensor/parsers/cline_parser.py Sensor/tests/test_observer.py Sensor/tests/test_parsers.py

Summary:
Intent:
- Bound Cline collection to the configured log lookback.
- Avoid dropping otherwise readable tasks when file metadata is unavailable.

Changes:
- Filter task directories by modification time.
- Retain tasks when timestamp lookup fails.
@barisozbas
barisozbas marked this pull request as ready for review September 7, 2026 10:08
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