Commit 1af1c08
Fix camera frames in notes and incomplete section caching
Bug 1 — Camera frames appearing in notes:
- _discover_screenshare_lectures() had `except Exception: pass` that
silently continued when alignment JSON was corrupted, including
non-screenshare lectures as screenshare. Changed to `continue` so
corrupted alignments are skipped, not included.
Bug 2 — Incomplete/truncated notes cached and included:
- Empty or too-short LLM drafts (< 100 chars) are no longer written
to disk. Previously, an empty draft still wrote a heading-only
file (~30 bytes) that got cached and included in final notes.
- Raised section cache threshold from 50 to 500 bytes. A heading
alone is ~30 bytes; 50 was too low and let truncated sections
pass the cache check. 500 bytes ensures meaningful content.
- merge_sections threshold also raised to 500 bytes to match.
- When draft is empty/short, returns a placeholder message telling
the user to re-run with force, without caching the bad result.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c3b987e commit 1af1c08
2 files changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
| 780 | + | |
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
816 | | - | |
817 | | - | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
818 | 820 | | |
819 | 821 | | |
820 | 822 | | |
| |||
1111 | 1113 | | |
1112 | 1114 | | |
1113 | 1115 | | |
1114 | | - | |
| 1116 | + | |
1115 | 1117 | | |
1116 | 1118 | | |
1117 | 1119 | | |
| |||
1414 | 1416 | | |
1415 | 1417 | | |
1416 | 1418 | | |
1417 | | - | |
| 1419 | + | |
1418 | 1420 | | |
1419 | 1421 | | |
1420 | 1422 | | |
1421 | 1423 | | |
1422 | 1424 | | |
1423 | 1425 | | |
1424 | 1426 | | |
1425 | | - | |
| 1427 | + | |
1426 | 1428 | | |
1427 | 1429 | | |
1428 | 1430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
| 376 | + | |
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
| |||
0 commit comments