Skip to content

LINE Integration: End-to-End shallowSyncUnreadChats Test #5

@gloomcheng

Description

@gloomcheng

Background

The shallowSyncUnreadChats flow has been refactored to use SmartChatSelector:

  1. Scan visible chats (AI Vision)
  2. Identify chats needing attention (unread + NOT muted)
  3. Click by row position
  4. Extract messages
  5. Return to chat list
  6. Scroll and repeat

Current Status

  • SmartChatSelector integrated into lineAtomicCoordinator
  • Model rotation for 40 RPD
  • LineChatStateTracker created
  • Full end-to-end test with actual message extraction
  • Database storage verification
  • Checkpoint mechanism testing

Test Plan

  1. Start with clean state
  2. Run shallowSyncUnreadChats
  3. Verify:
    • Only non-muted chats processed
    • Messages extracted correctly
    • Checkpoint updated
    • State diff tracked

Dependencies

  • Gemini API quota (40 RPD with rotation)
  • LINE app running
  • Electron environment for full test

Files

  • `src/utils/line/lineAtomicCoordinator.js`
  • `src/services/line/SmartChatSelector.js`
  • `test/shallow-sync-integration.test.mjs`

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions