Commit ebae676
fix(autofix): Fall back to code mappings when preference has empty repos
read_preference_from_sentry_db now always returns a SeerProjectPreference
instead of None, removing the has_configured_options gate that could
incorrectly treat mechanically-written default options as "configured".
_resolve_project_preference now checks preference.repositories instead
of just truthiness — when repos are empty it falls through to the code
mapping fallback while preserving the user's existing stopping point
and handoff settings.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent a16fcfa commit ebae676
File tree
3 files changed
+23
-28
lines changed- src/sentry/seer/autofix
3 files changed
+23
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
648 | 649 | | |
| 650 | + | |
649 | 651 | | |
650 | 652 | | |
651 | 653 | | |
| |||
658 | 660 | | |
659 | 661 | | |
660 | 662 | | |
661 | | - | |
| 663 | + | |
662 | 664 | | |
663 | 665 | | |
664 | | - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
665 | 675 | | |
666 | 676 | | |
667 | 677 | | |
668 | 678 | | |
669 | | - | |
670 | | - | |
| 679 | + | |
| 680 | + | |
671 | 681 | | |
672 | 682 | | |
673 | 683 | | |
| |||
684 | 694 | | |
685 | 695 | | |
686 | 696 | | |
687 | | - | |
| 697 | + | |
688 | 698 | | |
689 | 699 | | |
690 | 700 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
510 | | - | |
| 509 | + | |
511 | 510 | | |
512 | 511 | | |
513 | 512 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
737 | | - | |
| 737 | + | |
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | 752 | | |
759 | 753 | | |
760 | 754 | | |
| |||
767 | 761 | | |
768 | 762 | | |
769 | 763 | | |
770 | | - | |
| 764 | + | |
771 | 765 | | |
772 | 766 | | |
773 | 767 | | |
| |||
793 | 787 | | |
794 | 788 | | |
795 | 789 | | |
796 | | - | |
| 790 | + | |
797 | 791 | | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | 792 | | |
806 | 793 | | |
807 | 794 | | |
| |||
831 | 818 | | |
832 | 819 | | |
833 | 820 | | |
834 | | - | |
| 821 | + | |
835 | 822 | | |
836 | 823 | | |
837 | 824 | | |
| |||
887 | 874 | | |
888 | 875 | | |
889 | 876 | | |
890 | | - | |
891 | | - | |
| 877 | + | |
892 | 878 | | |
893 | 879 | | |
894 | 880 | | |
| |||
0 commit comments