Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-file-deletion-auto-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kilo-code": patch
---

Fix file deletion auto-approve checkbox not being clickable and set default to true for consistency
2 changes: 1 addition & 1 deletion cli/src/constants/providers/labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const PROVIDER_LABELS: Record<ProviderName, string> = {
synthetic: "Synthetic",
"sap-ai-core": "SAP AI Core",
baseten: "BaseTen",
corethink: "Corethink"
corethink: "Corethink",
}

/**
Expand Down
2 changes: 1 addition & 1 deletion cli/src/constants/providers/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ export const PROVIDER_DEFAULT_MODELS: Record<ProviderName, string> = {
synthetic: "synthetic-model",
"sap-ai-core": "gpt-4o",
baseten: "zai-org/GLM-4.6",
corethink: "corethink"
corethink: "corethink",
}

/**
Expand Down
2 changes: 1 addition & 1 deletion cli/src/constants/providers/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ export const PROVIDER_REQUIRED_FIELDS: Record<ProviderName, string[]> = {
"virtual-quota-fallback": [], // Has array validation
minimax: ["minimaxBaseUrl", "minimaxApiKey", "apiModelId"],
baseten: ["basetenApiKey", "apiModelId"],
corethink: ["corethinkApiKey", "corethinkModelId"]
corethink: ["corethinkApiKey", "corethinkModelId"],
}
2 changes: 1 addition & 1 deletion packages/types/src/providers/corethink.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ModelInfo } from "../model.js"

export const corethinkModels = {
"corethink": {
corethink: {
maxTokens: 8192,
contextWindow: 79000,
supportsImages: true,
Expand Down
5 changes: 5 additions & 0 deletions webview-ui/src/components/chat/AutoApproveDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const AutoApproveDropdown = ({ disabled = false, triggerClassName = "" }:
setAutoApprovalEnabled,
setAlwaysAllowReadOnly,
setAlwaysAllowWrite,
setAlwaysAllowDelete, // kilocode_change
setAlwaysAllowExecute,
setAlwaysAllowBrowser,
setAlwaysAllowMcp,
Expand All @@ -54,6 +55,9 @@ export const AutoApproveDropdown = ({ disabled = false, triggerClassName = "" }:
case "alwaysAllowWrite":
setAlwaysAllowWrite(value)
break
case "alwaysAllowDelete": // kilocode_change
setAlwaysAllowDelete(value)
break
case "alwaysAllowExecute":
setAlwaysAllowExecute(value)
break
Expand Down Expand Up @@ -84,6 +88,7 @@ export const AutoApproveDropdown = ({ disabled = false, triggerClassName = "" }:
autoApprovalEnabled,
setAlwaysAllowReadOnly,
setAlwaysAllowWrite,
setAlwaysAllowDelete, // kilocode_change
setAlwaysAllowExecute,
setAlwaysAllowBrowser,
setAlwaysAllowMcp,
Expand Down
6 changes: 3 additions & 3 deletions webview-ui/src/components/settings/AutoApproveSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type AutoApproveSettingsProps = HTMLAttributes<HTMLDivElement> & {
alwaysAllowWrite?: boolean
alwaysAllowWriteOutsideWorkspace?: boolean
alwaysAllowWriteProtected?: boolean
alwaysAllowDelete?: boolean
alwaysAllowDelete?: boolean // kilocode_change
alwaysAllowBrowser?: boolean
alwaysAllowMcp?: boolean
alwaysAllowModeSwitch?: boolean
Expand Down Expand Up @@ -69,7 +69,7 @@ export const AutoApproveSettings = ({
alwaysAllowWrite,
alwaysAllowWriteOutsideWorkspace,
alwaysAllowWriteProtected,
alwaysAllowDelete,
alwaysAllowDelete, // kilocode_change
alwaysAllowBrowser,
alwaysAllowMcp,
alwaysAllowModeSwitch,
Expand Down Expand Up @@ -194,7 +194,7 @@ export const AutoApproveSettings = ({
<AutoApproveToggle
alwaysAllowReadOnly={alwaysAllowReadOnly}
alwaysAllowWrite={alwaysAllowWrite}
alwaysAllowDelete={alwaysAllowDelete}
alwaysAllowDelete={alwaysAllowDelete} // kilocode_change
alwaysAllowBrowser={alwaysAllowBrowser}
alwaysAllowMcp={alwaysAllowMcp}
alwaysAllowModeSwitch={alwaysAllowModeSwitch}
Expand Down
6 changes: 1 addition & 5 deletions webview-ui/src/components/settings/providers/Corethink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,5 @@ export const Corethink = ({ apiConfiguration, setApiConfigurationField }: Coreth
void t // Placeholder to avoid unused variable warning
void handleInputChange // Placeholder to avoid unused variable warning

return (
<>
{/* Add the input fields back in when Corethink API key is required */}
</>
)
return <>{/* Add the input fields back in when Corethink API key is required */}</>
}
2 changes: 1 addition & 1 deletion webview-ui/src/context/ExtensionStateContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
featureRoomoteControlEnabled: false,
alwaysAllowWrite: true, // kilocode_change
alwaysAllowReadOnly: true, // kilocode_change
alwaysAllowDelete: false, // kilocode_change
alwaysAllowDelete: true, // kilocode_change
requestDelaySeconds: 5,
currentApiConfigName: "default",
listApiConfigMeta: [],
Expand Down
Loading