Skip to content

Copilot harness (Agent Host): "Instructions" missing from attach picker; unclear how attached/applyTo instructions are loaded and persisted #342595

Open

Description

@leonardos-cerebras

Version: VS Code 1.142.0 (user setup), commit 6d62b1d, Windows 10.0.26200 x64, connected via Remote SSH to a Linux host. @github/copilot 1.0.95-0.unstable.r38345923974.g3754b70, @github/copilot-sdk 1.0.19.38345923974.g3754b70.

Steps

  1. Start a new chat on the Copilot harness (the default for new sessions since 1.142).
  2. Open the attach (+) picker in the chat input.

Actual

The picker lists only Files & Folders, Screenshot Window, Sessions, Issue and Pull Request, plus recently opened files. The Instructions… item that is available in the Local harness is absent. I did not find this change in the 1.142 release notes.

Image

Problem

  • .instructions.md files with an applyTo glob are only listed to the model by path, with a rule to read them before editing matching files. Their application is not guaranteed and may not survive context compaction.
  • Attaching the file as a plain file (or as implicit editor context) gives no stated persistence guarantee.
  • Previously, explicitly adding instructions to a session was how I made sure they applied for the whole session.

Expected

Either:

  1. Restore Instructions… in the attach picker for the Copilot harness, with the same behavior as the Local harness; or
  2. Document how instructions are loaded and persisted in the Copilot harness (full text vs. path, behavior after compaction) and provide a way to pin instruction files to a session.
Image

Questions

  • Is an instructions-type attachment treated differently from a plain file attachment?
  • Does the Local harness behave differently here?

Related

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

Metadata

Metadata

Labels

staletriage-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions