|
@@ -42,6 +42,7 @@ import { ExtensionMessage, MarketplaceInstalledMetadata } from "../../shared/Ext
|
|
|
import { Mode, defaultModeSlug } from "../../shared/modes"
|
|
import { Mode, defaultModeSlug } from "../../shared/modes"
|
|
|
import { experimentDefault, experiments, EXPERIMENT_IDS } from "../../shared/experiments"
|
|
import { experimentDefault, experiments, EXPERIMENT_IDS } from "../../shared/experiments"
|
|
|
import { formatLanguage } from "../../shared/language"
|
|
import { formatLanguage } from "../../shared/language"
|
|
|
|
|
+import { DEFAULT_WRITE_DELAY_MS } from "@roo-code/types"
|
|
|
import { Terminal } from "../../integrations/terminal/Terminal"
|
|
import { Terminal } from "../../integrations/terminal/Terminal"
|
|
|
import { downloadTask } from "../../integrations/misc/export-markdown"
|
|
import { downloadTask } from "../../integrations/misc/export-markdown"
|
|
|
import { getTheme } from "../../integrations/theme/getTheme"
|
|
import { getTheme } from "../../integrations/theme/getTheme"
|
|
@@ -1436,6 +1437,7 @@ export class ClineProvider
|
|
|
profileThresholds,
|
|
profileThresholds,
|
|
|
alwaysAllowFollowupQuestions,
|
|
alwaysAllowFollowupQuestions,
|
|
|
followupAutoApproveTimeoutMs,
|
|
followupAutoApproveTimeoutMs,
|
|
|
|
|
+ diagnosticsEnabled,
|
|
|
} = await this.getState()
|
|
} = await this.getState()
|
|
|
|
|
|
|
|
const telemetryKey = process.env.POSTHOG_API_KEY
|
|
const telemetryKey = process.env.POSTHOG_API_KEY
|
|
@@ -1489,7 +1491,7 @@ export class ClineProvider
|
|
|
remoteBrowserHost,
|
|
remoteBrowserHost,
|
|
|
remoteBrowserEnabled: remoteBrowserEnabled ?? false,
|
|
remoteBrowserEnabled: remoteBrowserEnabled ?? false,
|
|
|
cachedChromeHostUrl: cachedChromeHostUrl,
|
|
cachedChromeHostUrl: cachedChromeHostUrl,
|
|
|
- writeDelayMs: writeDelayMs ?? 1000,
|
|
|
|
|
|
|
+ writeDelayMs: writeDelayMs ?? DEFAULT_WRITE_DELAY_MS,
|
|
|
terminalOutputLineLimit: terminalOutputLineLimit ?? 500,
|
|
terminalOutputLineLimit: terminalOutputLineLimit ?? 500,
|
|
|
terminalShellIntegrationTimeout: terminalShellIntegrationTimeout ?? Terminal.defaultShellIntegrationTimeout,
|
|
terminalShellIntegrationTimeout: terminalShellIntegrationTimeout ?? Terminal.defaultShellIntegrationTimeout,
|
|
|
terminalShellIntegrationDisabled: terminalShellIntegrationDisabled ?? false,
|
|
terminalShellIntegrationDisabled: terminalShellIntegrationDisabled ?? false,
|
|
@@ -1555,6 +1557,7 @@ export class ClineProvider
|
|
|
hasOpenedModeSelector: this.getGlobalState("hasOpenedModeSelector") ?? false,
|
|
hasOpenedModeSelector: this.getGlobalState("hasOpenedModeSelector") ?? false,
|
|
|
alwaysAllowFollowupQuestions: alwaysAllowFollowupQuestions ?? false,
|
|
alwaysAllowFollowupQuestions: alwaysAllowFollowupQuestions ?? false,
|
|
|
followupAutoApproveTimeoutMs: followupAutoApproveTimeoutMs ?? 60000,
|
|
followupAutoApproveTimeoutMs: followupAutoApproveTimeoutMs ?? 60000,
|
|
|
|
|
+ diagnosticsEnabled: diagnosticsEnabled ?? true,
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1638,6 +1641,7 @@ export class ClineProvider
|
|
|
alwaysAllowFollowupQuestions: stateValues.alwaysAllowFollowupQuestions ?? false,
|
|
alwaysAllowFollowupQuestions: stateValues.alwaysAllowFollowupQuestions ?? false,
|
|
|
alwaysAllowUpdateTodoList: stateValues.alwaysAllowUpdateTodoList ?? false,
|
|
alwaysAllowUpdateTodoList: stateValues.alwaysAllowUpdateTodoList ?? false,
|
|
|
followupAutoApproveTimeoutMs: stateValues.followupAutoApproveTimeoutMs ?? 60000,
|
|
followupAutoApproveTimeoutMs: stateValues.followupAutoApproveTimeoutMs ?? 60000,
|
|
|
|
|
+ diagnosticsEnabled: stateValues.diagnosticsEnabled ?? true,
|
|
|
allowedMaxRequests: stateValues.allowedMaxRequests,
|
|
allowedMaxRequests: stateValues.allowedMaxRequests,
|
|
|
autoCondenseContext: stateValues.autoCondenseContext ?? true,
|
|
autoCondenseContext: stateValues.autoCondenseContext ?? true,
|
|
|
autoCondenseContextPercent: stateValues.autoCondenseContextPercent ?? 100,
|
|
autoCondenseContextPercent: stateValues.autoCondenseContextPercent ?? 100,
|
|
@@ -1656,7 +1660,7 @@ export class ClineProvider
|
|
|
remoteBrowserEnabled: stateValues.remoteBrowserEnabled ?? false,
|
|
remoteBrowserEnabled: stateValues.remoteBrowserEnabled ?? false,
|
|
|
cachedChromeHostUrl: stateValues.cachedChromeHostUrl as string | undefined,
|
|
cachedChromeHostUrl: stateValues.cachedChromeHostUrl as string | undefined,
|
|
|
fuzzyMatchThreshold: stateValues.fuzzyMatchThreshold ?? 1.0,
|
|
fuzzyMatchThreshold: stateValues.fuzzyMatchThreshold ?? 1.0,
|
|
|
- writeDelayMs: stateValues.writeDelayMs ?? 1000,
|
|
|
|
|
|
|
+ writeDelayMs: stateValues.writeDelayMs ?? DEFAULT_WRITE_DELAY_MS,
|
|
|
terminalOutputLineLimit: stateValues.terminalOutputLineLimit ?? 500,
|
|
terminalOutputLineLimit: stateValues.terminalOutputLineLimit ?? 500,
|
|
|
terminalShellIntegrationTimeout:
|
|
terminalShellIntegrationTimeout:
|
|
|
stateValues.terminalShellIntegrationTimeout ?? Terminal.defaultShellIntegrationTimeout,
|
|
stateValues.terminalShellIntegrationTimeout ?? Terminal.defaultShellIntegrationTimeout,
|