diff --git a/src/renderer/src/components/native-chat/native-chat-session-option-labels.ts b/src/renderer/src/components/native-chat/native-chat-session-option-labels.ts index 69e1526ebd7..33b940d88f3 100644 --- a/src/renderer/src/components/native-chat/native-chat-session-option-labels.ts +++ b/src/renderer/src/components/native-chat/native-chat-session-option-labels.ts @@ -55,7 +55,7 @@ export function nativeChatSessionOptionDisabledReason( 'components.native-chat.composer.availableAfterSessionStarts', 'Available after the session starts.' ) - case undefined: + default: return null } } diff --git a/src/renderer/src/components/skills/skill-freshness-group.tsx b/src/renderer/src/components/skills/skill-freshness-group.tsx index aff064a378a..c6dac96479b 100644 --- a/src/renderer/src/components/skills/skill-freshness-group.tsx +++ b/src/renderer/src/components/skills/skill-freshness-group.tsx @@ -85,9 +85,7 @@ function chipTooltip(chip: SkillLocationChip): string { // Why: a skill is skipped for one concrete reason; lead with the highest-priority // blocking placement so the sentence explains the real cause (an edited copy is // more useful to surface than a downstream symptom). -type SkippedReasonChip = Exclude - -const SKIPPED_REASON_PRIORITY: readonly SkippedReasonChip[] = [ +const SKIPPED_REASON_PRIORITY: SkillLocationChip[] = [ 'unrecognized', 'read-only', 'inaccessible', @@ -136,7 +134,7 @@ function skippedReason(locations: readonly SkillLocationRow[]): string { 'auto.components.skills.SkillFreshnessRow.skippedReasonBrokenLink', 'This copy is a shortcut to something that no longer exists, so Orca left it out — you can safely delete it.' ) - case undefined: + default: return translate( 'auto.components.skills.SkillFreshnessRow.cantUpdateReason', 'Orca left this skill out of the update command.'