mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
Route required checks by changed surface, add offline provider and chat contracts, and keep fork PRs independent of live credentials. Layer agent guidance by subtree and enforce a compact instruction budget. Tested: bun run check:policy Confidence: high Scope-risk: broad
1022 B
1022 B
Desktop Instructions
These rules apply to desktop/ changes in addition to the root instructions.
- Reuse the existing desktop design system and component/store/API patterns. Use
lucide-reactfor common icons and keep operational UI dense, stable, and readable. - Add focused Vitest or Testing Library coverage for UI, store, or API behavior. Run it first, then follow
bun run check:impact; desktop product changes normally selectbun run check:desktop. - Chat transport, WebSocket lifecycle, first-turn runtime selection, reconnect, or session changes also require the offline
bun run check:chat-contractwhen selected. - Electron host, sidecar, packaging, or version changes require
bun run check:nativewhen selected. - Validate user-visible flows in a real browser/desktop session when unit tests cannot prove layout or cross-process behavior, and record the path exercised.
localStorageor native settings shape changes require a migration, an old fixture, andbun run check:persistence-upgrade.