fix(connector-meet-fathom): restore cursor to latest end_time#36
Conversation
…time, not since Initialising maxEnd to `since` meant the cursor could never move to a meeting whose end_time was older than since (e.g. in tests that supply a fixed past timestamp). Initialize to '' and fall back to since only when no meetings are returned, so the cursor always reflects the latest end_time seen. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Automated Code ReviewVerdict: ✅ APPROVE SummaryTwo-commit CI unblock: moves Issues (must fix before merge)None. Suggestions (optional)
This review was generated automatically. A maintainer will follow up. Generated by Claude Code |
Pre-existing strict-mode issues surfaced when CI started running build
before typecheck. Fixes:
- App.tsx: groupBy='source' patch needs the source-type cast against
NonNullable<Task['source']> (not Task['source'] which is nullable).
- App.tsx: deriveColumns now returns Column-shaped objects with an
always-present color (defaulted to #6b6a64).
- TopBar.tsx: drop the unused _onRefresh prop entirely; explicit
comment notes Cowork chrome owns reload.
- App.tsx: drop the JSX comment that crept in on the TopBar opening.
- Markdown.tsx: remove unused IMAGE_EXT constant.
- useTasks.ts: replace eslint-disable for react-hooks/exhaustive-deps
with a real comment (the rule isn't installed and was failing as
unknown). The closure-over-apply behavior is intentional.
- server.ts: replace require('node:fs')/require('node:path') with
named imports so eslint's no-var-requires passes.
- journey.spec.ts: drop unused setupCoworkEnv import.
- storage.test.ts: cast globalThis through unknown for stricter TS.
- connector-meet-fathom: cursor advancement was clamped to "now-24h"
on first run because maxEnd started at `since`. Now starts at the
original cursor (or empty) so any returned meeting wins; falls back
to since only when there were no meetings.
10/10 mcp + 15/15 storage + 84/84 e2e + 2/2 fathom + lint + typecheck
all green locally.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Summary
Two-commit fix to make
mainCI green again:fix(connector-meet-fathom)— initialisemaxEnd = ''so a meeting withend_timeolder thansincecan still advance the cursor. The existinguses end_time as cursortest has been failing onmainsince it was added.ci— runpnpm buildbeforetypecheck/lint/test. Without this, packages that depend on@cowork-tasks/corecan't resolve it during typecheck (the same fix is bundled into PR feat(0.4.14): VSCode-kanban feature parity (restore_task, rename_label, undo, column-aware new task, TASKS_DIR) #35).Together these unblock
main's CI, which has been red for the last 5 consecutive runs.Test plan
pnpm --filter @cowork-tasks/connector-meet-fathom test-- 2/2 pass locally