Repository navigation
fix(cli): show ⌥T instead of alt+T on macOS for thinking expansion #5802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
ffde6e5
e9b75c6
350c94c
ebe604d
b82e70c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -321,6 +321,8 @@ export const ThinkMessage: React.FC<ThinkMessageProps> = ({ | |||||
| const durationSuffix = | ||||||
| durationMs != null ? ` ${formatDuration(durationMs)}` : ''; | ||||||
|
|
||||||
| const toggleKeyHint = process.platform === 'darwin' ? '\u2325+t' : 'alt+t'; | ||||||
|
|
||||||
| if (!isPending && !expanded) { | ||||||
| const label = | ||||||
| durationMs != null | ||||||
|
|
@@ -329,7 +331,7 @@ export const ThinkMessage: React.FC<ThinkMessageProps> = ({ | |||||
| return ( | ||||||
| <Text dimColor italic> | ||||||
| {THINKING_ICON} | ||||||
| {label} {t('(alt+t to expand)')} | ||||||
| {label} {t(`(${toggleKeyHint} to expand)`)} | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Suggestion] The template literal inside The
Suggested change
This way translators work with one key ( — qwen3.7-max via Qwen Code /review |
||||||
| </Text> | ||||||
| ); | ||||||
| } | ||||||
|
|
@@ -370,7 +372,7 @@ export const ThinkMessage: React.FC<ThinkMessageProps> = ({ | |||||
| <Box flexDirection="column"> | ||||||
| <Text dimColor italic> | ||||||
| {THINKING_ICON} | ||||||
| {expandedLabel} {t('(alt+t to collapse)')} | ||||||
| {expandedLabel} {t(`(${toggleKeyHint} to collapse)`)} | ||||||
| </Text> | ||||||
| <Box paddingLeft={2} flexDirection="column"> | ||||||
| <MarkdownDisplay | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Suggestion] The Unicode
⌥(\u2325) symbol breaks the existing CLI key-hint convention.KeyboardShortcuts.tsxexclusively uses ASCII labels (alt+v,cmd+v,ctrl+o) — zero unicode modifier symbols anywhere inpackages/cli/src/. This creates UI inconsistency: macOS users see⌥+tin the thinking hint butalt+vin the keyboard shortcuts panel.Additionally, the same
toggleKeyHintexpression is copy-pasted in 3 files (ConversationMessages.tsx,HistoryItemDisplay.test.tsx,ConversationMessages.test.tsx). If the hint text or platform logic ever changes, all 3 must be updated in lockstep.Consider using
alt+ton all platforms to match the existing convention, or extract this to a shared constant if introducing unicode symbols is intentional.— qwen3.7-max via Qwen Code /review