Commit e10a41c
Fix watch mode missing events for short-lived sessions
The file_sizes cache in process_file_with_ts's None branch was recording
meta.len() at the time of the check, which could be larger than what was
actually processed by process_lines_streaming. This caused subsequent
watch events to skip the file via the current_size == cached_size fast
path, permanently missing data for files that stopped growing.
This primarily affected Codex sessions (short-lived, file stops growing
quickly) but could also affect Claude Code for short conversations.
Fix: do not cache file size when no complete lines were processed. The
next watch event will re-attempt processing without a stale cache entry.
Bump version to 1.1.2.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8ec83c6 commit e10a41c
2 files changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
467 | | - | |
468 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
469 | 473 | | |
470 | 474 | | |
471 | 475 | | |
| |||
564 | 568 | | |
565 | 569 | | |
566 | 570 | | |
567 | | - | |
568 | | - | |
569 | | - | |
| 571 | + | |
| 572 | + | |
570 | 573 | | |
571 | 574 | | |
572 | 575 | | |
| |||
0 commit comments