fix: align description fallback pattern across commands, subagents and rules - #1205
fix: align description fallback pattern across commands, subagents and rules#1205saitota wants to merge 1 commit into
Conversation
|
/opencode review |
1 similar comment
|
/opencode review |
PR Review Summary (PR addressing issue #1078)Code Review Findings
Security Review Findings
RecommendationReady to merge with one minor optional fix: remove redundant |
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