chore: scope ctrl-enter toggle changes

This commit is contained in:
Hannes Rudolph 2025-12-10 15:48:37 -07:00
parent c9dd8a8841
commit 18c1f69d5e
2 changed files with 5 additions and 7 deletions

View file

@ -789,8 +789,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
case "action":
switch (message.action!) {
case "didBecomeVisible":
// Do not grab focus during follow-up questions
if (!isHidden && !sendingDisabled && !enableButtons && clineAsk !== "followup") {
if (!isHidden && !sendingDisabled && !enableButtons) {
textAreaRef.current?.focus()
}
break
@ -859,7 +858,6 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
handleSecondaryButtonClick,
setCheckpointWarning,
playSound,
clineAsk,
],
)
@ -978,13 +976,12 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
useDebounceEffect(
() => {
// Do not grab focus during follow-up questions
if (!isHidden && !sendingDisabled && !enableButtons && clineAsk !== "followup") {
if (!isHidden && !sendingDisabled && !enableButtons) {
textAreaRef.current?.focus()
}
},
50,
[isHidden, sendingDisabled, enableButtons, clineAsk],
[isHidden, sendingDisabled, enableButtons],
)
useEffect(() => {

View file

@ -10,6 +10,7 @@ import {
type TelemetrySetting,
type OrganizationAllowList,
type CloudOrganizationMembership,
DEFAULT_CHECKPOINT_TIMEOUT_SECONDS,
ORGANIZATION_ALLOW_ALL,
} from "@roo-code/types"
@ -206,7 +207,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
ttsSpeed: 1.0,
diffEnabled: false,
enableCheckpoints: true,
checkpointTimeout: 15, // Default to 15 seconds
checkpointTimeout: DEFAULT_CHECKPOINT_TIMEOUT_SECONDS, // Default to 15 seconds
fuzzyMatchThreshold: 1.0,
language: "en", // Default language code
writeDelayMs: 1000,