fix: stop shipping model:/tools: pins to Copilot and Codex installs - #62
Merged
Merged
Conversation
Reports from real usage: running a Copilot prompt with a scoped `tools:` allowlist and a hardcoded `model:` display-string pin has left the whole Copilot Chat session wedged — tools and the model picker both stuck disabled, requiring the user to manually re-enable tools and MCP, re-pick a model, and sometimes reload the window. That's a much worse failure mode than the documented "an unavailable tool is just ignored" behavior, and there's no way to test this locally short of shipping a release and reproducing it live in VS Code. Claude Code has shown none of this: its install already strips `tools:` entirely and reduces `model:` to a single-word alias (transformFrontmatterForClaude), so it was never exposed to either pin in the form Copilot receives it. Add a matching transform for the git-based (Copilot/Codex) install path — stripModelAndToolsPins — that drops `model:`, `tools:`, and the body's `> **Model:**` note before writing to `.github/prompts/`. The shared template source is untouched, so Claude's derivation is unaffected; only what actually reaches Copilot/Codex changes. `agent:` and `description:` still ship, since neither is implicated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
model:display-string pin ortools:allowlist in prompt frontmatter, nor the body's> **Model:**note documenting them.tools:and reducesmodel:to a single-word alias, and it reads the untouched shared template directly.Motivation
Real usage reports: a Copilot prompt with a scoped
tools:allowlist plus a hardcodedmodel:display-string pin has left the whole Copilot Chat session wedged — both the tools picker and the model picker stuck disabled, requiring the user to manually re-enable tools/MCP, re-pick a model, and sometimes reload the window. That's a much worse failure mode than the documented "an unavailable tool is just ignored" behavior, and there's no way to reproduce/test this locally short of shipping a release and hitting it live in VS Code.Changes Made
stripModelAndToolsPinstransform (src/transforms/index.ts) that dropsmodel:,tools:, and the> **Model:**body note from a prompt's frontmatter/body.transformContent(src/installers/git-based.ts).agent:anddescription:still ship, since neither is implicated.src/cli.test.js) covering: the Copilot install strips both pins and the body note while preservingagent:/description:, and the shared template source still carriesmodel:/tools:so Claude's derivation is unaffected.Type of Change
Testing
npm run check(format, markdownlint, prompt validation, typecheck, build, lint, test) passes clean — 87/87 tests.