Copilot agent host: skills created during a turn remain undiscoverable until the next user message
Summary
A skill created during an active Copilot SDK agent-host turn is absent from the model-facing available-skills catalog for the remainder of that turn, including newly spawned subagents. Sending another user message makes the skill appear. This interrupts an otherwise self-contained create-then-use workflow.
Environment
- VS Code 1.146.0 stable, commit
69047191fc427f2f92828279aae1d90d8eeda7ab - Linux remote agent host, accessed over SSH
- Copilot SDK provider in VS Code
- A valid user skill under
~/.copilot/skills/<name>/SKILL.md
Steps to reproduce
- Start a Copilot agent-host conversation with skill discovery enabled.
- In one user request, ask the agent to create a valid new skill in its configured user skills directory, then use/delegate work requiring it without another user message.
- After the file is written, inspect the parent's available-skills catalog and ask a newly spawned
tasksubagent to report whether the new name is listed, without reading the file directly. - Send another user message and repeat the catalog check with a new
tasksubagent.
Expected: the completed skill creation invalidates discovery so the parent and subsequently spawned skill-capable subagents can discover the skill during the same turn, without user intervention.
Actual: the new skill is absent before step 4 and present afterwards.
Evidence from the observed session
- After creation during the active turn, the parent's subsequent model-facing catalogs still omitted the new name.
- A
tasksubagent launched during that turn explicitly reported that the skill was not listed. - At the next user message, the parent's catalog included the name.
- Fresh
task,general-purpose, and custom-agent probes then all listed it. - The
taskagent definition allowed all tools. This is separate fromexplore/other agent definitions that intentionally omit the skill tool.
These observations establish stale discovery across the active turn; they do not establish which VS Code/SDK cache is responsible. They also do not test whether manually invoking an unadvertised name would succeed. The bug is discoverability without an extra user-message boundary, not a general claim that subagents cannot use skills.
Impact and validation
Creating a skill and delegating work that uses it cannot reliably complete autonomously in one request. A regression test should create a new skill after a turn has started and verify that subsequent discovery and a newly created skill-capable subagent see it before any further user message. Preserve configured trust, enablement, and policy checks.
Related but distinct: #332047 concerns restored Claude sessions missing customizations until the next message; this report concerns a running Copilot session and a skill newly created during its active turn.
Filed by an AI assistant on the user's explicit request, based on the session's recorded before/after observations.