Fix opencode workflow dispatch to use run subcommand#2410
Merged
mnriem merged 1 commit intogithub:mainfrom Apr 29, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes the opencode integration’s workflow command dispatch so it uses opencode’s supported non-interactive invocation (opencode run) rather than inheriting the generic Markdown integration’s unsupported -p prompt flag, resolving the dispatch failure described in #2409.
Changes:
- Override
OpencodeIntegration.build_exec_args()to dispatch viaopencode run, mapping slash-commands to--command, model to-m, and JSON capture to--format json. - Add regression tests asserting opencode’s exec-arg construction for slash-command dispatch, model flag mapping, JSON output, and plain prompt dispatch.
Show a summary per file
| File | Description |
|---|---|
src/specify_cli/integrations/opencode/__init__.py |
Implements opencode-specific CLI argument construction for workflow dispatch via run/--command and correct flag mapping. |
tests/integrations/test_integration_opencode.py |
Adds focused tests to prevent regressions in opencode dispatch argument formatting. |
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
approved these changes
Apr 29, 2026
Collaborator
|
Thank you! |
|
There are other CLIs missing as well. See my comment on the closed issue: #2409 (comment) |
kanfil
added a commit
to tikalk/agentic-sdlc-spec-kit
that referenced
this pull request
Apr 29, 2026
Upstream changes (22 commits): - fix: include --from git+... in upgrade hint to avoid PyPI squat package (github#2411) - fix: dispatch opencode commands via run (github#2410) - feat: add catalog discovery CLI commands (github#2360) - fix(extensions): use explicit UTF-8 encoding when reading manifest YAML (github#2370) - feat: Speckit preset fiction book v1.7 - Support for RAG (Chroma DB) (github#2367) - chore: release 0.8.2, begin 0.8.3.dev0 development (github#2397) - Catalog updates: security review v1.3.0, v-model v0.6.0, threatmodel, isaqb-architecture-governance, m365, MarkItDown Fork customizations preserved: - Fork package name and version (agentic-sdlc-specify-cli) - skill_app integration from cli_customization - Bundled extensions and presets
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.
Description
Fixes #2409.
This updates the opencode integration dispatch path to use
opencode run --command <command>instead of inheriting the generic Markdown integration’s-pprompt flag. The inherited dispatch generated unsupported opencode CLI arguments, causing workflow command execution to print help output instead of running the requested Spec Kit command.The fix also maps opencode-specific flags correctly:
--commandfor command dispatch-mfor model selection--format jsonfor captured JSON outputTesting
uv run specify --helpuv run python -m pytest -qAdditional focused checks:
uv run python -m pytest tests/integrations/test_integration_opencode.py -quv run python -m pytest tests/integrations/test_base.py tests/integrations/test_integration_opencode.py tests/test_agent_config_consistency.py -qAI Disclosure
I used Codex to inspect the issue and code path, implement the focused fix, add regression tests, and run validation locally.