Skip to content

fix(copilot): resolve active spec template#2765

Merged
mnriem merged 1 commit into
github:mainfrom
WOLIKIMCHENG:fix/copilot-spec-template-resolution
Jun 1, 2026
Merged

fix(copilot): resolve active spec template#2765
mnriem merged 1 commit into
github:mainfrom
WOLIKIMCHENG:fix/copilot-spec-template-resolution

Conversation

@WOLIKIMCHENG
Copy link
Copy Markdown
Contributor

Description

Fixes #2761.

This updates the Copilot speckit.specify command instructions so generated agents resolve the active spec-template through the Spec Kit preset/template resolution stack instead of hardcoding the core template path. This lets project overrides, presets, and extensions supply the effective spec template for new specs.

Testing

  • Tested locally with uv run --no-sync specify --help
  • Ran existing tests with uv run --no-sync pytest -q (3104 passed, 40 skipped)
  • Ran focused Copilot integration tests with uv run --no-sync pytest tests/integrations/test_integration_copilot.py -q (47 passed)
  • Ran uvx ruff check src/
  • Ran python -m compileall -q src tests/integrations/test_integration_copilot.py
  • Ran git diff --check -- templates/commands/specify.md tests/integrations/test_integration_copilot.py
  • Tested with a sample project (not applicable; covered by Copilot integration generation test)

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Copilot integration’s speckit.specify agent instructions so the spec template is resolved via the preset/template resolution stack (rather than hardcoding the core template path), aligning Copilot behavior with preset overrides and fixing #2761.

Changes:

  • Update templates/commands/specify.md to instruct the agent to resolve the active spec-template (equivalent to specify preset resolve spec-template) and use that resolved file.
  • Add an integration test asserting the generated Copilot specify agent no longer hardcodes .specify/templates/spec-template.md and instead references the resolver flow.
Show a summary per file
File Description
tests/integrations/test_integration_copilot.py Adds a regression test ensuring the generated speckit.specify agent resolves the active spec template and avoids hardcoded core-template instructions.
templates/commands/specify.md Updates the speckit.specify command template to resolve and load the active spec-template through the preset/template resolution stack.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@mnriem mnriem merged commit 14da893 into github:main Jun 1, 2026
12 checks passed
@mnriem
Copy link
Copy Markdown
Collaborator

mnriem commented Jun 1, 2026

Thank you!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copilot speckit.specify does not honor preset spec-template override

3 participants