Skip to content

Commit 01bfe1a

Browse files
committed
fixed lint issues
1 parent e516662 commit 01bfe1a

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

src/core/tools/__tests__/multiApplyDiffTool.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ describe("multiApplyDiffTool", () => {
4242
getState: vi.fn().mockResolvedValue({
4343
experiments: {
4444
[EXPERIMENT_IDS.MULTI_FILE_APPLY_DIFF]: true,
45+
[EXPERIMENT_IDS.PREVENT_FOCUS_DISRUPTION]: false,
4546
},
4647
diagnosticsEnabled: true,
4748
writeDelayMs: 0,
@@ -87,6 +88,9 @@ describe("multiApplyDiffTool", () => {
8788
rooProtectedController: {
8889
isWriteProtected: vi.fn().mockReturnValue(false),
8990
},
91+
securityGuard: {
92+
validateFileAccess: vi.fn().mockReturnValue(null), // null means no security issues
93+
},
9094
fileContextTracker: {
9195
trackFileContext: vi.fn().mockResolvedValue(undefined),
9296
},

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
102102
alwaysAllowReadOnlyOutsideWorkspace,
103103
alwaysAllowWrite,
104104
alwaysAllowWriteOutsideWorkspace,
105-
alwaysAllowWriteProtected,
105+
alwaysAllowWriteProtected: _alwaysAllowWriteProtected,
106106
alwaysAllowExecute,
107107
alwaysAllowMcp,
108108
allowedCommands,
@@ -1201,7 +1201,6 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
12011201
isReadOnlyToolAction,
12021202
alwaysAllowWrite,
12031203
alwaysAllowWriteOutsideWorkspace,
1204-
alwaysAllowWriteProtected,
12051204
isWriteToolAction,
12061205
alwaysAllowExecute,
12071206
isAllowedCommand,

webview-ui/src/components/settings/ExperimentalSettings.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { HTMLAttributes, useState, useEffect } from "react"
22
import { FlaskConical } from "lucide-react"
3-
import { VSCodeTextField, VSCodeButton } from "@vscode/webview-ui-toolkit/react"
3+
import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react"
44

55
import type { Experiments } from "@roo-code/types"
66

@@ -83,15 +83,6 @@ export const ExperimentalSettings = ({
8383
const { enabled: configEnabled, path: actualConfigPath } = parseConfigValue(securityCustomConfigPath || "")
8484
const [enableCustomConfig, setEnableCustomConfig] = useState(configEnabled)
8585

86-
// Transform full paths to use ~ notation
87-
const transformPath = (fullPath: string): string => {
88-
const homeDir = process.env.HOME || "/Users/" + process.env.USER
89-
if (fullPath.startsWith(homeDir)) {
90-
return fullPath.replace(homeDir, "~")
91-
}
92-
return fullPath
93-
}
94-
9586
// Update toggle when custom config path changes
9687
useEffect(() => {
9788
const { enabled } = parseConfigValue(securityCustomConfigPath || "")

0 commit comments

Comments
 (0)