Skip to content

fix(sensor): support the current Warp database schema - #89

Draft
barisozbas wants to merge 1 commit into
mainfrom
pr/warp-current-schema
Draft

fix(sensor): support the current Warp database schema#89
barisozbas wants to merge 1 commit into
mainfrom
pr/warp-current-schema

Conversation

@barisozbas

Copy link
Copy Markdown
Collaborator

What changed

Warp conversation parsing now supports both the legacy and current local database schemas.

  • Detects which supported column set is available before querying.
  • Uses the matching query and row mapping for that schema.
  • Caches schema detection for the parser run instead of repeating metadata queries.
  • Preserves the existing conversation-age filtering behavior.

Why

Warp renamed conversation fields in its local database. The fixed legacy query fails against current installations and prevents conversation collection entirely.

Validation

  • pytest -q Sensor/tests
  • ruff check Sensor/adr_sensor/parsers/warp_parser.py Sensor/tests/test_parsers.py

Summary:
Intent:
- Continue collecting Warp conversations after its local database schema changed.

Changes:
- Detect supported schema variants and query their current columns.
- Cache schema detection for the duration of parsing.
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