Skip to content

Commit 31ab4be

Browse files
committed
fix: locale JSON syntax; prevent focus grab on follow-up; platform-aware key hints
1 parent 4b673c5 commit 31ab4be

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,8 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
790790
case "action":
791791
switch (message.action!) {
792792
case "didBecomeVisible":
793-
if (!isHidden && !sendingDisabled && !enableButtons) {
793+
// Do not grab focus during follow-up questions
794+
if (!isHidden && !sendingDisabled && !enableButtons && clineAsk !== "followup") {
794795
textAreaRef.current?.focus()
795796
}
796797
break
@@ -855,6 +856,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
855856
handlePrimaryButtonClick,
856857
handleSecondaryButtonClick,
857858
setCheckpointWarning,
859+
clineAsk,
858860
],
859861
)
860862

@@ -976,12 +978,13 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
976978

977979
useDebounceEffect(
978980
() => {
979-
if (!isHidden && !sendingDisabled && !enableButtons) {
981+
// Do not grab focus during follow-up questions
982+
if (!isHidden && !sendingDisabled && !enableButtons && clineAsk !== "followup") {
980983
textAreaRef.current?.focus()
981984
}
982985
},
983986
50,
984-
[isHidden, sendingDisabled, enableButtons],
987+
[isHidden, sendingDisabled, enableButtons, clineAsk],
985988
)
986989

987990
const isReadOnlyToolAction = useCallback((message: ClineMessage | undefined) => {

webview-ui/src/i18n/locales/de/settings.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/fr/settings.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/it/settings.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)