You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GitHub Copilot breaks custom prompt link when editing #293403
Editing a previous prompt that uses a custom prompt breaks the representation of the custom prompt so that the LLM cannot access it. (This bug was originally filed as a second part of #286920, but seemed to be ignored/overlooked, so I am splitting it out so that it can get the attention it needs.)
Create default.instructions.md using applyTo: '**'.
Submit a prompt such as "Print hello.". GitHub Copilot will show "Used 1 reference" as expected, indicating default.instructions.md.
Create a custom prompt in a file such as foo.prompt.md.
Submit a prompt such as "/foo Print world.".
Edit the previous prompt by clicking on it.
The edited text now says
Follow instructions in [foo.prompt.md](vscode-userdata:/c%3A/Users/user/AppData/Roaming/Code/User/prompts/foo.prompt.md).
Resubmit the previous prompt.
Expected: GitHub Copilot uses the custom prompt again.
Actual: The custom prompt link is broken, and the LLM responds:
I don't have access to that file. …
GitHub Copilot broke the previous link, so that the custom prompt link turned into the raw text [foo.prompt.md](vscode-userdata:/c%3A/Users/user/AppData/Roaming/Code/User/prompts/foo.prompt.md) which the LLM could not access directly, rather than an actual linked custom prompt. (But because of #286920, it's even hard to tell without digging into the debug output.)
Thanks for the detailed report. This flow was fixed in e2db449: custom prompt submissions now retain the original /foo invocation instead of rewriting it to a raw vscode-userdata Markdown link, so editing and resubmitting resolves and attaches the prompt file again. The fix shipped in 1.112.0.
This issue was closed automatically: the fix shipped in 1.112.0, proposed by the VS Code sweeper and confirmed by an independent second review. It is closed as "not planned" rather than "completed" only because a "completed" close would put this already-shipped fix back into the current milestone's verification queue. If it still reproduces on 1.112.0 or later, reply here or reopen the issue and a maintainer will take a look.
Activity
vs-code-engineering commentedon Nov 12, 2026
Thanks for the detailed report. This flow was fixed in e2db449: custom prompt submissions now retain the original
/fooinvocation instead of rewriting it to a rawvscode-userdataMarkdown link, so editing and resubmitting resolves and attaches the prompt file again. The fix shipped in 1.112.0.This issue was closed automatically: the fix shipped in 1.112.0, proposed by the VS Code sweeper and confirmed by an independent second review. It is closed as "not planned" rather than "completed" only because a "completed" close would put this already-shipped fix back into the current milestone's verification queue. If it still reproduces on 1.112.0 or later, reply here or reopen the issue and a maintainer will take a look.