Repository navigation
fix(skills): library install menu, trash notice, agent confirmations - #51
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…otice Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A hands-on pass of Global Skills (Settings → Tools) found three bugs:
t3_skills_removeandt3_skills_restorereturned{}, so an agent could not confirm what happened.Root causes and fixes
SkillLibrarySectionrenderedMenuGroupLabelstraight insideMenuPopup. It is now wrapped inMenuGroup, as inIntegrationsSettings. No otherMenuGroupLabeladded by feat: port upstream skills and Tools settings (#17691) #39, feat(skills): skill library sources and per-instance Claude homes #46 or feat(skills): move removed skills to a trash with restore #47 had this problem.SettingsContentLayoutkeys each settings page byJSON.stringify(search). In TanStack Router, a parent route's search carries every URL param, including a child page's ownskill. Closing a skill's page changed the key and remounted the Skills panel. That dropped theuseSkillTrashstate, andsetRemovedthen ran on the unmounted instance after the removal returned. The key now comes from the scope params only (settingsScopeKey). Opening or closing a skill, task or server keeps the page mounted, and changing scope still remounts it. Every remove entry point goes through the same dialog, so all of them now show the notice. Dismiss and Restore are unchanged.SkillLibrary.removeandrestoreFromTrashnow return the trash entry.t3_skills_removereturns{ id, name, paths }andt3_skills_restorereturns{ name, paths }. The RPC handlers still return{}, so there is no contract change.Verification
vp test runpasses forsettingsScopeNavigation.test.ts(new router test: opening and closing a skill keeps the key, changing scope changes it), the tools and skill-trash MCP handler tests (new) andSkillLibrary.test.ts(asserts the returned entries).vp run check:changedfails only on things that were already failing:prefer-effect-fnand test-timeout lint on lines this PR does not touch, and knip unused exports from the Docs work.Model: Claude Opus 5.5 (claude-opus-5-5), harness: Claude Code in T3 Code.
🤖 Generated with Claude Code