The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): show platform commit shortcut
273-B_L0a590321de24a
diff --git a/apps/desktop/src/app/right-sidebar/review/ship-bar.tsx b/apps/desktop/src/app/right-sidebar/review/ship-bar.tsxindex ff863ff63ed..2f85a9ade43 100644--- a/apps/desktop/src/app/right-sidebar/review/ship-bar.tsx+++ b/apps/desktop/src/app/right-sidebar/review/ship-bar.tsx@@ -9,6 +9,7 @@ import { SplitButton } from '@/components/ui/split-button'import { Textarea } from '@/components/ui/textarea'import { Tip } from '@/components/ui/tooltip'import { useI18n } from '@/i18n'+import { formatCombo } from '@/lib/keybinds/combo'import { notifyError } from '@/store/notifications'import {$reviewCommitDefault,@@ -87,7 +88,7 @@ export function ReviewShipBar() {runCommit(commitDefault)}}}- placeholder={c.commitPlaceholder}+ placeholder={c.commitPlaceholder(formatCombo('mod+enter'))}rows={1}size="sm"value={message}diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex 09487fde8a5..ce16fc742e2 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -1835,7 +1835,7 @@ export const ar = defineLocale({scopeLastTurn: 'آخر دور',commit: 'إيداع',commitAndPush: 'إيداع ودفع',- commitPlaceholder: 'رسالة (⌘↵ للإيداع)',+ commitPlaceholder: shortcut => `رسالة (${shortcut} للإيداع)`,generateCommitMessage: 'توليد رسالة الإيداع',stopGenerating: 'إيقاف التوليد',createPr: 'إنشاء PR',diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 229fd2daff7..38f8db2de87 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -2289,7 +2289,7 @@ export const en: Translations = {scopeLastTurn: 'Last turn',commit: 'Commit',commitAndPush: 'Commit & Push',- commitPlaceholder: 'Message (⌘↵ to commit)',+ commitPlaceholder: shortcut => `Message (${shortcut} to commit)`,generateCommitMessage: 'Generate commit message',stopGenerating: 'Stop generating',createPr: 'Create PR',diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex c157679f644..cafe0dc7762 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -2027,7 +2027,7 @@ export const ja = defineLocale({scopeLastTurn: '前のターン',commit: 'コミット',commitAndPush: 'コミットしてプッシュ',- commitPlaceholder: 'メッセージ(⌘↵ でコミット)',+ commitPlaceholder: shortcut => `メッセージ(${shortcut} でコミット)`,generateCommitMessage: 'コミットメッセージを生成',stopGenerating: '生成を停止',createPr: 'PR を作成',diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex 37e9443bf6d..88ffd56000d 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -1924,7 +1924,7 @@ export interface Translations {scopeLastTurn: stringcommit: stringcommitAndPush: string- commitPlaceholder: string+ commitPlaceholder: (shortcut: string) => stringgenerateCommitMessage: stringstopGenerating: stringcreatePr: stringdiff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex 96ac09f2041..fffb154946a 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -1968,7 +1968,7 @@ export const zhHant = defineLocale({scopeLastTurn: '上一輪',commit: '提交',commitAndPush: '提交並推送',- commitPlaceholder: '訊息(⌘↵ 提交)',+ commitPlaceholder: shortcut => `訊息(${shortcut} 提交)`,generateCommitMessage: '產生提交訊息',stopGenerating: '停止產生',createPr: '建立 PR',diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex 668ed940776..51b20a9d386 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -2476,7 +2476,7 @@ export const zh: Translations = {scopeLastTurn: '上一轮',commit: '提交',commitAndPush: '提交并推送',- commitPlaceholder: '信息(⌘↵ 提交)',+ commitPlaceholder: shortcut => `信息(${shortcut} 提交)`,generateCommitMessage: '生成提交信息',stopGenerating: '停止生成',createPr: '创建 PR',diff --git a/apps/desktop/src/lib/keybinds/combo.test.ts b/apps/desktop/src/lib/keybinds/combo.test.tsindex e7d66b5909a..25968b756e0 100644--- a/apps/desktop/src/lib/keybinds/combo.test.ts+++ b/apps/desktop/src/lib/keybinds/combo.test.ts@@ -115,13 +115,15 @@ describe('formatCombo — honest Control labels', () => {expect(formatCombo('ctrl+tab')).toBe('⌃⇥')expect(formatCombo('ctrl+shift+tab')).toBe('⌃⇧⇥')+ expect(formatCombo('mod+enter')).toBe('⌘↵')})- it('renders "Ctrl+…" off macOS (base key keeps its glyph)', async () => {- const { formatCombo } = await loadCombo('Win32')+ it.each(['Linux x86_64', 'Win32'])('renders "Ctrl+…" off macOS on %s (base key keeps its glyph)', async platform => {+ const { formatCombo } = await loadCombo(platform)expect(formatCombo('ctrl+tab')).toBe('Ctrl+⇥')expect(formatCombo('ctrl+shift+tab')).toBe('Ctrl+Shift+⇥')+ expect(formatCombo('mod+enter')).toBe('Ctrl+↵')})it('renders PageUp and PageDown with compact labels', async () => {