spec-kit
spec-kit copied to clipboard
fix(workflows): honor integration executable overrides during dispatch preflight
Description
Workflow command and prompt dispatch currently preflight CLI availability with shutil.which(impl.key). That misses the executable selected by build_exec_args(), including SPECKIT_INTEGRATION_<KEY>_EXECUTABLE overrides.
This updates both workflow dispatch paths to use build_exec_args()[0] as the preflight source of truth, matching the argv that will actually be executed.
This is related to #2539, but narrower: that PR handles integrations whose binary name differs from the integration key. This PR specifically fixes executable override precedence. It is also complementary to #2631, which covers Windows shim resolution.
Testing
- [x] Ran existing tests with
.venv/bin/python -m pytest -q(3494 passed, 45 skipped) - [x] Ran
UV_CACHE_DIR=/tmp/uv-cache uvx ruff check src/ tests/test_workflows.py - [x] Ran
git diff --check HEAD~1..HEAD - [ ] Tested locally with
uv run specify --help(not applicable; no CLI help path changed) - [ ] Tested with a sample project (covered by workflow step regression tests)