Skip to content

fix(bundles): honor bundle integration during init - #5111

Open
chelsealong wants to merge 1 commit into
github:mainfrom
chelsealong:fix/codex-spec-kit-5089
Open

chelsealong wants to merge 1 commit into
github:mainfrom
chelsealong:fix/codex-spec-kit-5089

Conversation

@chelsealong

Copy link
Copy Markdown
Contributor

Description

Fixes #5089. For a fresh project, bundle init <bundle> now uses the existing install path, which validates the manifest and selects its declared integration before initializing.

Testing

Both new regression tests failed before the source fix: one reproduced the Copilot/Claude clash; the other found .specify left behind after an incompatible bundle. Both pass with the fix.

  • .venv/bin/python -m pytest tests/specify_cli/bundles -q — 927 passed
  • .venv/bin/specify --help — passed
  • ruff check and ruff format --check on both changed files — passed
  • git diff --check — passed

AI Disclosure

  • I did use AI assistance

AI disclosure: Codex (GPT-6, autonomous, default reasoning settings) generated the code and tests and ran the checks listed above.

@chelsealong
chelsealong requested a review from mnriem as a code owner October 25, 2026 00:15
@mnriem mnriem added the triage-must-have Verdict: high-value, important work for Spec Kit — do first label Oct 25, 2026
@mnriem
mnriem requested a max review from Copilot October 26, 2026 13:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused delegation reuses existing validation and integration selection, with reported regression evidence and no blocking findings.

1 open issue
What changed in this PR

Fixes #5089 by routing fresh-project specify bundle init <bundle> through the existing installation flow, honoring the bundle’s declared integration before initialization.

Changes:

  • Reuse installation validation and integration selection before creating the project.
  • Add regressions for declared integration selection and incompatible-bundle rejection without leaving .specify behind.

Validation relies on the reported before-and-after results; tests were not rerun here.

File Description
tests/​specify_cli/​bundles/​test_command_init.py Adds success and rejection regression tests; formats existing tests.
src/​specify_cli/​bundles/​command_init.py Delegates fresh-project initialization with a bundle to the existing install path.

Review effort: Max

Comment on lines +49 to +50
assert result.exit_code == 1, result.output
assert not (project / ".specify").exists()
@mnriem

mnriem commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Please address Copilot feedback

@mnriem mnriem added the author-awaiting Waiting on author response label Oct 26, 2026

This branch has not been deployed

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

Labels

author-awaiting Waiting on author response triage-must-have Verdict: high-value, important work for Spec Kit — do first

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: bundle init <bundle> initialises with the default integration instead of the bundle's, then aborts with a clash

3 participants