fix: align description fallback pattern across commands, subagents and rules#1216
Merged
dyoshikawa merged 6 commits intodyoshikawa:mainfrom Mar 2, 2026
Merged
fix: align description fallback pattern across commands, subagents and rules#1216dyoshikawa merged 6 commits intodyoshikawa:mainfrom
dyoshikawa merged 6 commits intodyoshikawa:mainfrom
Conversation
Collaborator
|
/opencode review |
This comment has been minimized.
This comment has been minimized.
Owner
|
@saitota Thank you. Please fix the points of the AI review. |
- Remove remaining `description = ""` default in cursor-command.ts - Simplify truthiness check in cursor-rule.ts to `if (frontmatter.description)`
Contributor
Author
|
@dyoshikawa Fixed No1 and No3. PTAL
|
Owner
|
@saitota Thank you! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
Author
|
Okay, I'll handle this. |
…codexcli, cline, kilo
Contributor
Author
|
Fixed finding-1 from 2nd review. PTAL
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
Author
|
Fixed finding-1/7 from 3rd review. PTAL
|
This comment has been minimized.
This comment has been minimized.
Contributor
|
✓ Fix verified successfully The fix for finding-1/7 has been correctly implemented in Verification results:
|
Owner
|
@saitota Thank you! |
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.
Summary
description ?? ""anddescription || ""fallback patterns in commands, subagents and rules to propagateundefinedinstead of empty stringdescriptionfield optional (z.optional(z.string())) across all command/subagent schemas for consistency withRulesyncRuleFrontmatterSchemacursor-rule.tstruthiness check to use explicit!== undefined && !== null && !== ""guard instead of falsy checkdeepRemoveNullishObjectedge case test for nested objects with all-null valuesCloses #1078
Note
This PR addresses all occurrences of the
description ?? ""/description || ""pattern found across the codebase, not just the two files mentioned in the issue #1078 .References
Test plan