Skip to content

fix: preserve daily log entry headers when truncating context - #64

Open
Alfabete-spec wants to merge 1 commit into
jayzeng:mainfrom
Alfabete-spec:fix/keep-daily-log-entry-headers
Open

Alfabete-spec wants to merge 1 commit into
jayzeng:mainfrom
Alfabete-spec:fix/keep-daily-log-entry-headers

Conversation

@Alfabete-spec

Copy link
Copy Markdown

Summary

When the daily-log preview limit cuts into a stamped entry, keep that entry's timestamp and heading alongside the recent text. The preview stays within the existing line and character limits. This applies to today and yesterday without changing the on-disk log format or qmd behavior.

Fixes #59.

Verification

  • The new unit test reproduced the missing header before the fix.
  • bun test test/unit.test.ts (198 passed)
  • npm run build
  • npm run lint

Signed-off-by: Alfabete-spec <196493132+Alfabete-spec@users.noreply.github.com>
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.

Daily log injection uses end-truncation, dropping the heading and timestamp once a day exceeds 3000 chars

1 participant