Skip to content

feat(gui): refresh_skills on skills page view, startup, and agent reconnect - #45

Merged
huichen merged 1 commit into
mainfrom
feat/gui-refresh-skills-on-view-and-reconnect
Jul 26, 2026
Merged

huichen merged 1 commit into
mainfrom
feat/gui-refresh-skills-on-view-and-reconnect

Conversation

@huichen

@huichen huichen commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds refresh_skills RPC calls at two new trigger points so the agent'"'"'s skill cache stays in sync with the filesystem without requiring an explicit install/uninstall:

  1. Entering the Skills page — calls refresh_skills before fetching installed/available lists, ensuring the view always reflects the current state.
  2. GUI startup — fire-and-forget call ensures skills installed via CLI or other tools are visible without a restart.
  3. Agent reconnect — when the agent becomes available after a disconnect/restart, re-triggers the scan so a fresh agent instance (with empty cache) picks up installed skills.

The agent'"'"'s 5 s rate limit makes repeated calls within a short window harmless (returns refreshed: false).

Changes

File Change
gui/src-tauri/src/commands/skills.rs New refresh_skills Tauri command wrapping agent_bridge::refresh_skills()
gui/src-tauri/src/lib.rs Register the new command
gui/src/integrations/skills/skillsClient.ts New refreshSkills() frontend function
gui/src/features/skills/SkillsView.tsx Call refreshSkills() on mount before loading lists
gui/src/components/layout/AppShell.tsx Call refreshSkills() on startup mount + on agent connection change

@huichen
huichen force-pushed the feat/gui-refresh-skills-on-view-and-reconnect branch from 7735f84 to f33c498 Compare July 26, 2026 13:45
@huichen
huichen merged commit 7abe337 into main Jul 26, 2026
16 checks passed
@huichen
huichen deleted the feat/gui-refresh-skills-on-view-and-reconnect branch July 26, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant