From 5143ef2ceab87e7673317b709c4c2fba94e87c28 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Fri, 17 Jul 2026 00:37:31 -0700 Subject: [PATCH] chore: restore unrelated UI files to main (out of scope) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit native-chat-session-option-labels.ts and skill-freshness-group.tsx switch tweaks were unrelated to GitHub API outage attribution — they fix pre-existing switch-exhaustiveness lint on main, which this PR's CI (oxlint) doesn't gate on. Restore them to origin/main so this PR's diff stays focused; the exhaustiveness cleanup belongs in its own change. (sync-runtime-graph.ts is already identical to main, so no diff there to revert.) --- .../native-chat/native-chat-session-option-labels.ts | 2 +- .../src/components/skills/skill-freshness-group.tsx | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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.'