mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
Desktop users have different multiline habits, and issue #631 calls out that Enter-only submission is too easy to trigger. This adds a persisted General setting that keeps Enter-send as the default while allowing Ctrl/Cmd+Enter submission for users who want plain Enter to insert a newline. Constraint: Preserve existing Enter-to-send behavior as the default Rejected: Change the global default to Ctrl/Cmd+Enter | would disrupt existing users Confidence: high Scope-risk: moderate Directive: Keep active and empty session composers using the shared send shortcut helper Tested: cd desktop && bun run test -- --run src/components/chat/ChatInput.test.tsx src/__tests__/generalSettings.test.tsx src/stores/settingsStore.test.ts Tested: bun run check:desktop Tested: cd desktop && bun run lint Tested: Browser smoke on http://127.0.0.1:5174/?serverUrl=http%3A%2F%2F127.0.0.1%3A3456 Not-tested: Packaged Tauri app runtime Related: #631