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 */}