Skip to content

session-summary test fails after 2026-09-08: fixed date older than LATEST_MAX_AGE_DAYS #9

Description

@Sorcecoder

tests/hooks/session-summary.test.ts "is idempotent per session ... and readable as latest" writes summaries dated 2026-08-18 and then calls readLatestSessionSummary(db) with the real clock. LATEST_MAX_AGE_DAYS is 21 (src/hooks/session-summary.ts:35), so since 2026-09-08 the row counts as too old, the function returns null and the test fails with "expected undefined to be 'second version'".

It fails on origin/main (f13cf25) as well, independent of any other change. Fix: pass the same fixed now to readLatestSessionSummary in the test.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions