fix: add missing instruction body to opencode plannotator-last command#613
Open
xiaolai wants to merge 1 commit intobacknotprop:mainfrom
Open
fix: add missing instruction body to opencode plannotator-last command#613xiaolai wants to merge 1 commit intobacknotprop:mainfrom
xiaolai wants to merge 1 commit intobacknotprop:mainfrom
Conversation
This was referenced Apr 26, 2026
The command file had only a frontmatter description and an empty body. All other OpenCode commands (annotate, review, archive) have a brief instruction body; this omission left the agent with no guidance when the command was invoked outside the plugin's intercept path. Co-Authored-By: Claude Code <noreply@anthropic.com>
84a0700 to
6ddddbb
Compare
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.
Bug
apps/opencode-plugin/commands/plannotator-last.mdhas an empty body after its frontmatter. When a user invokes/plannotator-lastin OpenCode, the agent receives no instructions and behavior is undefined.Every other OpenCode command in this repo has a short instruction body that tells the agent what the command triggers and to acknowledge then wait for user feedback:
plannotator-review.md: "The Plannotator Code Review has been triggered. Opening the review UI... Acknowledge and wait for the user's feedback."plannotator-annotate.md: "The Plannotator Annotate UI has been triggered. Opening the annotation UI... Acknowledge and wait for the user's feedback."plannotator-archive.md: "The Plannotator Archive has been triggered. Opening the archive browser... Acknowledge and wait for the user to finish browsing."plannotator-last.mdis missing this body entirely.Fix
Added the matching instruction body following the established OpenCode command pattern. Also aligned the
descriptionfrontmatter field with the hook and copilot variants ("Annotate the last rendered assistant message"— the word "rendered" was missing from the opencode version).