mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 20:43:36 +00:00
fix(ui): Use phaseModels.validationModel instead of legacy field
Update use-issue-validation hook to use the new phaseModels structure for validation model selection instead of deprecated validationModel field. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -23,7 +23,7 @@ export function useIssueValidation({
|
|||||||
onValidationResultChange,
|
onValidationResultChange,
|
||||||
onShowValidationDialogChange,
|
onShowValidationDialogChange,
|
||||||
}: UseIssueValidationOptions) {
|
}: UseIssueValidationOptions) {
|
||||||
const { currentProject, validationModel, muteDoneSound } = useAppStore();
|
const { currentProject, phaseModels, muteDoneSound } = useAppStore();
|
||||||
const [validatingIssues, setValidatingIssues] = useState<Set<number>>(new Set());
|
const [validatingIssues, setValidatingIssues] = useState<Set<number>>(new Set());
|
||||||
const [cachedValidations, setCachedValidations] = useState<Map<number, StoredValidation>>(
|
const [cachedValidations, setCachedValidations] = useState<Map<number, StoredValidation>>(
|
||||||
new Map()
|
new Map()
|
||||||
@@ -233,8 +233,8 @@ export function useIssueValidation({
|
|||||||
description: 'You will be notified when the analysis is complete',
|
description: 'You will be notified when the analysis is complete',
|
||||||
});
|
});
|
||||||
|
|
||||||
// Use provided model override or fall back to global validationModel
|
// Use provided model override or fall back to phaseModels.validationModel
|
||||||
const modelToUse = model || validationModel;
|
const modelToUse = model || phaseModels.validationModel;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const api = getElectronAPI();
|
const api = getElectronAPI();
|
||||||
@@ -264,7 +264,7 @@ export function useIssueValidation({
|
|||||||
currentProject?.path,
|
currentProject?.path,
|
||||||
validatingIssues,
|
validatingIssues,
|
||||||
cachedValidations,
|
cachedValidations,
|
||||||
validationModel,
|
phaseModels.validationModel,
|
||||||
onValidationResultChange,
|
onValidationResultChange,
|
||||||
onShowValidationDialogChange,
|
onShowValidationDialogChange,
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user