Repository navigation
fix(linear): show 'Cannot verify' when skill scan is inconclusive - #20964
Hidden character warning
AmethystLiang merged 1 commit into
Conversation
A scan that encounters an error before discovering skills, or hits an unreadable root, cannot vouch for "not installed". Previously these cases were conflated with proven absence, so the checklist would claim the skill step incomplete even when all three steps had been finished. Now the UI distinguishes between confirmed states and unknown ones, showing "Cannot verify" instead of listing the skill as an unfinished step.
There was a problem hiding this comment.
ℹ️ No critical issues. One rough edge worth a look: the expanded Task Sources card still paints the unverified skill as an unfinished step.
Reviewed changes
- New
installedUnverifiableverdict —installed-agent-skill-verdict.tsextractshasUnreadableAgentSkillSourceand addsgetInstalledAgentSkillVerdict, which doubts a negative when a queried root is unreadable or the scan errored before answering, while a landed answer survives a later refresh failure. useInstalledAgentSkillssurfaces the verdict — returnsinstalledUnverifiableand folds the advisory error through it;settledis unchanged in meaning.skill-unverifiedsetup status — added toTaskProviderSetupStatus/tone table and returned after connection/ready checks but beforeskill-required, soreadyis still unreachable with an unverified skill.LinearAgentSkillGuide— renamedstatus→readiness(connectionChecking→checking,visibleInTasks→visible), routes its pill through the shared status, adds aTriangleAlertrow icon and a separate confirmed-count badge.TaskSourceProviderCard— renders "Cannot verify" for the new status, keeping thecompleted/totalbadge.- Localization —
setupUnverified/statusUnverifiedforen+zh, pinned by the status-label localization test.
ℹ️ The expanded Task Sources card still treats an unverified skill as an unfinished step
TaskSourceLinearSetup derives step 2's badge from skillInstalled alone, so an inconclusive scan still renders the numbered pending badge and leaves the Install CTA in place — directly under a header pill that now reads "Cannot verify". The verdict is already available from useLinearAgentSkillSetup(); it just is not consumed there, so the card's two halves disagree about the same fact.
Technical details
# Unverified skill still rendered as pending in the expanded Task Sources card
## Affected sites
- src/renderer/src/components/settings/TaskSourceLinearSetup.tsx:35 — `skillState` is `skillChecking ? 'in-progress' : skillInstalled ? 'done' : 'pending'`; `skillUnverifiable` is destructured by the same hook but unused, so step 2 shows the numbered pending badge.
- src/renderer/src/components/settings/TaskSourceLinearSetup.tsx:141 — `AgentSkillSetupPanel` is passed `installed={skillSetup.skillInstalled}` only; the panel has no knowledge of the verdict, so it still offers Install.
- The settings-pane copy shares the same shape (`LinearAgentSkillPane.tsx:87`), but the inline panel's header is hidden there, so the contradiction is only the action CTA.
## Required outcome
- When the scan is unverifiable, the Task Sources step row should present the step as unknown rather than pending (e.g. a warning state alongside the new "Cannot verify" pill), so the expanded card agrees with its own header.
## Open questions for the human
- Is keeping the Install CTA intentional as a recovery action while only the status copy changes? The comment in `task-source-setup-state.ts` says the status exists to avoid "Install, which reinstalls a skill that may be present", but the CTA is driven by `skillInstalled`, not by the status.DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (19)
Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change adds an unverifiable state for agent-skill scans. Discovery logic now preserves trusted answers and marks unanswered or unreadable negative results as unverifiable. Setup readiness propagates this state to Linear components. Setup guides and provider cards render “Cannot verify” with attention styling and completion counts. Tests cover scan verdicts, precedence rules, readiness propagation, UI rendering, and localization. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The readiness UI preserves verified skill results and represents only genuinely inconclusive scans as unverified; no actionable merge risk remains. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the problem, solution, scope, and testing, but it omits several required template sections. It does not provide a linked issue, visual proof or an explicit N/A explanation, AI disclosure, review details, boundary confirmation, notes, or checklist status. Resolution Add the required template sections. Include a valid “Fixes #” issue reference, attach before-and-after UI evidence or write “N/A” with a reason, complete the AI Disclosure and Review sections, confirm the agent skill upstream boundary, address the Notes items, and complete the Checklist. Full details: Docstring CoverageExplanation Docstring coverage is 31.25% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 16 functions across 17 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ablyai#20964) A scan that encounters an error before discovering skills, or hits an unreadable root, cannot vouch for "not installed". Previously these cases were conflated with proven absence, so the checklist would claim the skill step incomplete even when all three steps had been finished. Now the UI distinguishes between confirmed states and unknown ones, showing "Cannot verify" instead of listing the skill as an unfinished step.

Problem
When a skill scan couldn't verify whether the Linear agent skill was installed (e.g., due to an unreachable source or error before getting results), the setup checklist incorrectly counted this as an incomplete step. It would show "2 of 3 ready" and offer to Install the skill—even though the skill might already be installed and the uncertainty was just about readability.
Solution
Added an
installedUnverifiableverdict to distinguish inconclusive scans from confirmed absences. The setup checklist now shows "Cannot verify" with an attention tone when a scan is inconclusive, while keeping the confirmed step count (e.g., "2/3") visible. This clarifies the uncertainty is about readability, not a missing step.What Changed
skill-unverifiedstatus in setup state with proper precedence (after checking/connection, before confirmed absence)installed-agent-skill-verdict.tshook computes when a scan is unverifiable (unread roots or errors before any result)installedUnverifiableverdict on the stateTesting
status→readiness,connectionChecking→checking,visibleInTasks→visible)