Skip to content

fix: backfill agent-context extension for integrations#2882

Open
nkgotcode wants to merge 1 commit into
github:mainfrom
nkgotcode:fix/2881-agent-context-backfill
Open

fix: backfill agent-context extension for integrations#2882
nkgotcode wants to merge 1 commit into
github:mainfrom
nkgotcode:fix/2881-agent-context-backfill

Conversation

@nkgotcode
Copy link
Copy Markdown

Description

Backfills the bundled agent-context extension before integration install, switch, and upgrade flows write agent-context-config.yml. This keeps recovered or older projects from ending up with only the config file and no runnable agent-context extension files.

Fixes #2881.

Testing

  • Tested locally with uv run specify --help
  • Ran existing tests with uv run python -m pytest tests/integrations/test_integration_subcommand.py tests/extensions/test_extension_agent_context.py tests/test_agent_config_consistency.py -q
  • Tested with a sample project: initialized Copilot, removed .specify/extensions/agent-context plus its registry entry, then ran specify integration upgrade copilot --script sh --force and verified the extension files and config were restored.

Validation output:

uv run specify --help
Usage: specify [OPTIONS] COMMAND [ARGS]...
Commands: init, check, version, self, extension, preset, integration, workflow

uv run python -m pytest tests/integrations/test_integration_subcommand.py tests/extensions/test_extension_agent_context.py tests/test_agent_config_consistency.py -q
128 passed in 12.62s

sample backfill OK: .github/copilot-instructions.md

AI Disclosure

  • I did use AI assistance (describe below)

This fix was prepared and validated with AI-assisted coding-agent support under human-operated OSS factory workflow controls.

@nkgotcode nkgotcode requested a review from mnriem as a code owner June 6, 2026 14:33
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.

[Bug]: agent-context extension is only installed by 'specify init' — other paths write an inert config that stops updating context files at v0.12.0

1 participant