mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
The desktop command list could be replaced by a partial live CLI update after a turn, and the server fallback only knew about skills. Keep the client list stable while refreshing from the authoritative session endpoint, and include legacy .claude/commands entries in that endpoint. Constraint: Claude Code custom slash commands still use .claude/commands/*.md alongside newer skill commands. Rejected: Only union client-side updates | would still miss custom commands before CLI init and lose argument hints from the authoritative API. Confidence: high Scope-risk: moderate Directive: Keep session slash command fallback aware of both skills and legacy command directories. Tested: bun test src/server/__tests__/sessions.test.ts -t "slash-commands" Tested: cd desktop && bun run test -- --run src/stores/chatStore.test.ts Tested: bun run check:desktop Tested: bun run check:server Tested: bun run check:native Not-tested: bun run verify remains red due unrelated/flaky coverage lane failures outside this change. Related: https://github.com/NanmiCoder/cc-haha/issues/495