Skip to content

fix: chunker line tracking, md-to-html robustness, and add job failure notifications#2

Open
zxt217 wants to merge 1 commit intograpeot:mainfrom
zxt217:claude/clever-hawking
Open

fix: chunker line tracking, md-to-html robustness, and add job failure notifications#2
zxt217 wants to merge 1 commit intograpeot:mainfrom
zxt217:claude/clever-hawking

Conversation

@zxt217
Copy link
Copy Markdown

@zxt217 zxt217 commented Apr 4, 2026

Summary

  • chunker.py: Fix line number tracking to account for YAML frontmatter offset (resolves TODO)
  • models.py: Correct type annotation for metadata field to
  • send_email_to_myself.py: Protect fenced code blocks from markdown transformation, improve italic regex, handle table alignment syntax
  • job_guard.py (new): Cron job wrapper — silent on success, sends failure/timeout email notifications
  • test_chunker.py (new): 8 unit tests for chunking, frontmatter parsing, and line positions

Test plan

  • Run to verify chunker fixes
  • Send a test email with markdown containing code blocks to verify md-to-html robustness
  • Test with a failing command:

🤖 Generated with Claude Code

…e notifications

- chunker.py: fix line number tracking to account for YAML frontmatter offset (resolves TODO)
- models.py: correct type annotation for metadata field to Optional[Dict[str, Any]]
- send_email_to_myself.py: protect fenced code blocks from markdown transformation,
  improve italic regex to avoid conflicts with bold, handle table alignment syntax
- job_guard.py: new cron job wrapper that sends email on failure/timeout (silent on success)
- tests/test_chunker.py: add 8 unit tests for chunking, frontmatter, line positions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.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.

1 participant