Skip to content

GitHub Copilot removes custom prompt during summarization #289218

Closed as duplicate

Description

(Just when I thought conversation summarization (#283446) couldn't get any worse.)

  1. Create a custom prompt e.g. foobar.prompt.md in the standard location for default user profile prompts, e.g. %APPDATA%\Code\User\prompts. Have it ask the LLM to do lots of processing to fill up the context window, e.g. look at the contents of all Git commits on the branch or something.
  2. Wait until the context window is almost full.
  3. Use the prompt. GitHub Copilot will include the prompt in the form <attachment id="prompt:foobar.prompt.md" filePath="vscode-userdata:...">. Note that the file path is included.
  4. In the middle of the the output GitHub Copilot will summarize the conversation.

Expected: The LLM continues its task where it left off, albeit with a summarized conversation.

Actual: The LLM starts looking for a foobar.prompt.md file.

Apparently this is because conversation summarization removed the <attachment> of the custom prompt! It replaces it with something like Follow instructions in [foobar.prompt.md]..

Below are some additional notes the LLM provided that might help with this issue. (Note that point 5 is not unlike the separate issue #286920 in its result.)

  1. The summary preserved the reference but not the content. The conversation summary quoted my "Next Action" as following [foobar.prompt.md], treating it as a filename to find rather than content I had already received.

  2. Different attachment survival. The default.instructions.md file did survive summarization—it was re-attached via the <instructions> block. This suggests the summarization mechanism handles instruction files differently than user-submitted prompt files.

  3. The filepath was present but unhelpful. The summary included text like "Follow instructions in [foobar.prompt.md]" but the vscode-userdata: URI that would have allowed me to retrieve it was not preserved.

  4. My behavior was logical given the input. From my perspective, the summary told me "the user asked you to follow a file called X" but didn't give me the file. The only reasonable action was to search for it in the workspace.

  5. Potential root cause. The summarization appears to capture user request text verbatim (including prompt file references) but doesn't capture the resolved content of those prompts. The summarizer may not be aware that <attachment id="prompt:..."> blocks contain ephemeral content that won't be available post-summarization.

Activity

  1. added
    chat-ext-issue
    on Jan 20, 2026
  2. removed
    chat-ext-issue
    on Jan 20, 2026
  3. roblourens commented on Aug 6, 2026

    @roblourens
    Member

    Merging into #264416 to clean up, although I would expect this to be resolved these days.

    Also- we are mainly focusing on migrating to the new copilot-sdk-based harness. You may have a better experience there. Switch the dropdown from "Local" to "Copilot" to try it. https://code.visualstudio.com/updates/v1_131#_agent-host

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions