diff --git a/apps/frontend/src/main/ipc-handlers/github/ai-triage-handlers.ts b/apps/frontend/src/main/ipc-handlers/github/ai-triage-handlers.ts index 85e7a183..56b6c4dc 100644 --- a/apps/frontend/src/main/ipc-handlers/github/ai-triage-handlers.ts +++ b/apps/frontend/src/main/ipc-handlers/github/ai-triage-handlers.ts @@ -105,7 +105,7 @@ export function registerAITriageHandlers( return; } - const backendPath = validation.backendPath!; + const backendPath = validation.backendPath ?? ''; const { model, thinkingLevel } = getGitHubIssuesSettings(); const args = buildRunnerArgs( @@ -141,7 +141,7 @@ export function registerAITriageHandlers( return; } - sendComplete(result.data!); + sendComplete(result.data as AIEnrichmentResult); }); } catch (error) { sendError(error instanceof Error ? error.message : 'Failed to run enrichment'); @@ -182,7 +182,7 @@ export function registerAITriageHandlers( return; } - const backendPath = validation.backendPath!; + const backendPath = validation.backendPath ?? ''; const { model, thinkingLevel } = getGitHubIssuesSettings(); const args = buildRunnerArgs( @@ -218,7 +218,7 @@ export function registerAITriageHandlers( return; } - const suggestion = result.data!; + const suggestion = result.data as SplitSuggestion; // Cap sub-issues at MAX_SPLIT_SUB_ISSUES if (suggestion.subIssues.length > MAX_SPLIT_SUB_ISSUES) { diff --git a/apps/frontend/src/renderer/components/github-issues/components/IssueSplitDialog.tsx b/apps/frontend/src/renderer/components/github-issues/components/IssueSplitDialog.tsx index 5830927c..016c3c57 100644 --- a/apps/frontend/src/renderer/components/github-issues/components/IssueSplitDialog.tsx +++ b/apps/frontend/src/renderer/components/github-issues/components/IssueSplitDialog.tsx @@ -46,7 +46,7 @@ export function IssueSplitDialog({ suggestion, progress, onConfirm, onCancel }: {/* Sub-issues */}
{subIssues.map((sub, index) => ( -
+
- + setConfig((prev) => ({ ...prev, batchSize: Number.parseInt(e.target.value, 10) || 0 }))} @@ -94,8 +95,9 @@ export function ProgressiveTrustSettings({ config: initialConfig, onSave, onCanc {/* Confirm above */}
- + setConfig((prev) => ({ ...prev, confirmAbove: Number.parseInt(e.target.value, 10) || 0 }))} diff --git a/apps/frontend/src/renderer/components/github-issues/hooks/useAITriage.ts b/apps/frontend/src/renderer/components/github-issues/hooks/useAITriage.ts index 67e3d2c2..0da7b449 100644 --- a/apps/frontend/src/renderer/components/github-issues/hooks/useAITriage.ts +++ b/apps/frontend/src/renderer/components/github-issues/hooks/useAITriage.ts @@ -59,7 +59,7 @@ export function useAITriage(projectId: string) { cleanup(); } }; - }, [projectId, store]); + }, [store]); const runEnrichment = useCallback( (issueNumber: number) => {