mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
Goal commands already had local CLI metadata, but desktop and SDK init consumers only received a name list. Keep the legacy slash_commands string array intact and add explicit metadata so clients can render descriptions and usage hints without breaking older readers. Constraint: Existing SDK/system init consumers may depend on slash_commands staying string-only. Rejected: Replace slash_commands with objects | would risk breaking older SDK and desktop consumers. Confidence: high Scope-risk: moderate Directive: Keep slash_commands as the compatibility name list unless all SDK consumers have migrated. Tested: bun test src/server/__tests__/websocket-handler.test.ts src/utils/messages/systemInit.test.ts src/commands/headless.test.ts src/goals/goalState.test.ts src/goals/goalEvaluator.test.ts Tested: cd desktop && bun test src/components/chat/composerUtils.test.ts Tested: bun run check:server Tested: bun run check:desktop