Repository navigation
fix(core): render built-in command arguments - #45697
Merged
Merged
Conversation
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.
Why
The built-in
initandreviewtemplates place$ARGUMENTSwhere command input belongs, but the renderer left those markers in the prompt and appended the input at the end. Review contains the marker more than once, so the model received both stale placeholders and misplaced context.What Changes
$ARGUMENTSPath interpolation, attached files, and delivery mode continue through the existing command path.
Scope
This changes only built-in command rendering. It does not import configured-command shell interpolation or positional argument semantics, and it does not alter MCP prompt parsing.
Verification
From
packages/core:bun run test test/plugin/command.test.ts bun typecheckFrom the repository root:
The focused tests passed (2 tests), Core typecheck passed, both structural scans passed, diff-check passed, and the full 33-package pre-push typecheck passed. Scoped oxlint completed with four pre-existing warnings in unchanged command registration lines and no errors.