Commit cd76942
fix(workflows): address Copilot review feedback on integration auto-detect
Issue 1 (engine.py:726): Explicit --input integration=auto was rejected by
enum validation before the sentinel could be resolved. Move the auto-resolution
to before _coerce_input() so enum-constrained inputs also accept 'auto'.
Issue 2 (engine.py:737): workflow.integration: auto in the YAML was stored
raw as 'auto' in WorkflowDefinition.default_integration and leaked into
StepContext, causing step dispatch to look for an 'auto' CLI. Add
_resolve_workflow_integration() helper and use it at both StepContext
construction sites.
Issue 3 (engine.py:779): _load_project_integration() only queried the legacy
'integration' field. Newer state files may carry 'default_integration' as the
canonical key. Replace the custom inner reader for integration.json with a
call to the shared default_integration_key() from integration_state, which
handles both fields and their precedence correctly.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d05a622 commit cd76942
2 files changed
Lines changed: 112 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
426 | 429 | | |
427 | 430 | | |
428 | 431 | | |
429 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
430 | 435 | | |
431 | 436 | | |
432 | 437 | | |
| |||
474 | 479 | | |
475 | 480 | | |
476 | 481 | | |
477 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
478 | 485 | | |
479 | 486 | | |
480 | 487 | | |
| |||
713 | 720 | | |
714 | 721 | | |
715 | 722 | | |
716 | | - | |
717 | | - | |
718 | | - | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
719 | 730 | | |
720 | 731 | | |
721 | 732 | | |
722 | 733 | | |
723 | 734 | | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | 735 | | |
728 | 736 | | |
729 | 737 | | |
| |||
737 | 745 | | |
738 | 746 | | |
739 | 747 | | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
740 | 760 | | |
741 | 761 | | |
742 | 762 | | |
| |||
747 | 767 | | |
748 | 768 | | |
749 | 769 | | |
750 | | - | |
| 770 | + | |
| 771 | + | |
751 | 772 | | |
752 | 773 | | |
753 | 774 | | |
| |||
760 | 781 | | |
761 | 782 | | |
762 | 783 | | |
763 | | - | |
| 784 | + | |
764 | 785 | | |
765 | 786 | | |
766 | 787 | | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
774 | 804 | | |
775 | 805 | | |
776 | 806 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2022 | 2022 | | |
2023 | 2023 | | |
2024 | 2024 | | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
0 commit comments