Commit fa718ef
fix: only dedup bare copilot files against dirs with events.jsonl
Two fixes from code review:
1. Discovery dedup was checking for any same-stem directory, even if it
lacked events.jsonl. A bare session would be silently dropped when
an invalid directory existed. Now only directories with events.jsonl
suppress the bare file.
2. FindCopilotSourceFile checked bare format first, but discovery
prefers directory format. Reversed the check order so both paths
use consistent directory-first precedence.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ad15510 commit fa718ef
2 files changed
Lines changed: 63 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
433 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
434 | 435 | | |
435 | 436 | | |
436 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
437 | 444 | | |
438 | 445 | | |
439 | 446 | | |
| |||
485 | 492 | | |
486 | 493 | | |
487 | 494 | | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
| 495 | + | |
| 496 | + | |
495 | 497 | | |
496 | 498 | | |
497 | 499 | | |
498 | 500 | | |
499 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
500 | 508 | | |
501 | 509 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
497 | 533 | | |
498 | 534 | | |
499 | 535 | | |
| |||
639 | 675 | | |
640 | 676 | | |
641 | 677 | | |
642 | | - | |
643 | | - | |
644 | | - | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
645 | 681 | | |
646 | 682 | | |
647 | 683 | | |
648 | 684 | | |
649 | 685 | | |
650 | 686 | | |
651 | 687 | | |
652 | | - | |
653 | 688 | | |
654 | | - | |
| 689 | + | |
| 690 | + | |
655 | 691 | | |
656 | 692 | | |
657 | 693 | | |
| |||
661 | 697 | | |
662 | 698 | | |
663 | 699 | | |
| 700 | + | |
664 | 701 | | |
665 | | - | |
666 | | - | |
| 702 | + | |
667 | 703 | | |
668 | 704 | | |
669 | 705 | | |
670 | 706 | | |
671 | 707 | | |
672 | | - | |
673 | | - | |
| 708 | + | |
| 709 | + | |
674 | 710 | | |
675 | 711 | | |
0 commit comments