Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): show new skills in the picker without restarting #12672

Closeddakdevs(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/12672/headopened View on GitHub

Why

New or edited skills stay missing from $ until T3 Code restarts.

Evidence:

  • Workspace skill snapshots are one-shot: once a cwd is cached, later health refreshes and Refresh provider status reuse it.
  • A new folder or an in-place SKILL.md edit under a provider skill root does not invalidate that cache. Reported in #11497.
  • Restarting is the only reliable way to see the skill today.

Fix: Watch the skill files Claude, Cursor, and Antigravity already look at. A missing root is watched at its nearest existing parent so creating the skills folder still fires. On a skill-file change, re-run the existing snapshotForCwd refresh and replace the catalog only after that succeeds. Discovery itself is unchanged. Codex, Grok, and OpenCode stay CLI-only.

Summary

Skills show up in $ when the files we already look for change. The last complete catalog stays visible until the new one is ready.

What

Who this helps

Customer: Anyone who installs, copies, or edits a skill in a Claude, Cursor, or Antigravity skill folder during a session.

Impact: The skill appears in $ as soon as that file changes, instead of after a restart.

Diagram

Before

Once a workspace snapshot exists, later refreshes keep the stale skill list.

flowchart TD
  addSkill[Add or edit SKILL.md] --> picker["$ picker"]
  health[Health refresh] --> cache[Cached cwd snapshot]
  cache --> picker
  restart[Restart T3 Code] --> probe[snapshotForCwd]
  probe --> picker

After

A watch on the skill files we already look for triggers the existing refresh and swaps in the new list.

flowchart TD
  addSkill[Add or edit SKILL.md] --> watch[Watch skill files]
  watch --> refresh[Existing snapshotForCwd]
  refresh --> picker["$ picker"]
  health[Health refresh] --> cache[Cached cwd snapshot]
  cache --> picker
  style watch fill:#2ea043,stroke:#3fb950,color:#fff
  style refresh fill:#2ea043,stroke:#3fb950,color:#fff
  subgraph Legend
    direction LR
    added[Added]
    style added fill:#2ea043,stroke:#3fb950,color:#fff
  end

Closes #11497

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. Note

      Grok responding on behalf of Julius.

      Superseded by #14542, which already landed and closed #11497. Closing this draft as leftover hygiene so it doesn’t stay open against a fixed issue.

    3. juliusmarminge closed this

    4. Note

      Grok responding on behalf of Julius.

      Closing as superseded by #14542, which already closed #11497 (the issue this draft targeted). #14542 adds Restart agent session in cmd+k plus a fresh provider rescan so new skills/plugins load without a full app restart.

      If you still want the file-watch auto-refresh approach from this PR, feel free to open a follow-up against current main.

Sign in to join this conversation.