@@ -60,11 +60,7 @@ import { SYSTEM_PROMPT } from "../prompts/system"
6060import { ToolRepetitionDetector } from "../tools/ToolRepetitionDetector"
6161import { FileContextTracker } from "../context-tracking/FileContextTracker"
6262import { RooIgnoreController } from "../ignore/RooIgnoreController"
63- import {
64- type AssistantMessageContent ,
65- parseAssistantMessageV2 as parseAssistantMessage ,
66- presentAssistantMessage ,
67- } from "../assistant-message"
63+ import { type AssistantMessageContent , parseAssistantMessage , presentAssistantMessage } from "../assistant-message"
6864import { truncateConversationIfNeeded } from "../sliding-window"
6965import { ClineProvider } from "../webview/ClineProvider"
7066import { MultiSearchReplaceDiffStrategy } from "../diff/strategies/multi-search-replace"
@@ -100,7 +96,6 @@ export type ClineEvents = {
10096export type TaskOptions = {
10197 provider : ClineProvider
10298 apiConfiguration : ProviderSettings
103- customInstructions ?: string
10499 enableDiff ?: boolean
105100 enableCheckpoints ?: boolean
106101 fuzzyMatchThreshold ?: number
@@ -134,7 +129,6 @@ export class Task extends EventEmitter<ClineEvents> {
134129 isPaused : boolean = false
135130 pausedModeSlug : string = defaultModeSlug
136131 private pauseInterval : NodeJS . Timeout | undefined
137- customInstructions ?: string
138132
139133 // API
140134 readonly apiConfiguration : ProviderSettings
@@ -194,7 +188,6 @@ export class Task extends EventEmitter<ClineEvents> {
194188 constructor ( {
195189 provider,
196190 apiConfiguration,
197- customInstructions,
198191 enableDiff = false ,
199192 enableCheckpoints = true ,
200193 fuzzyMatchThreshold = 1.0 ,
@@ -234,7 +227,6 @@ export class Task extends EventEmitter<ClineEvents> {
234227
235228 this . urlContentFetcher = new UrlContentFetcher ( provider . context )
236229 this . browserSession = new BrowserSession ( provider . context )
237- this . customInstructions = customInstructions
238230 this . diffEnabled = enableDiff
239231 this . fuzzyMatchThreshold = fuzzyMatchThreshold
240232 this . consecutiveMistakeLimit = consecutiveMistakeLimit
@@ -1417,6 +1409,7 @@ export class Task extends EventEmitter<ClineEvents> {
14171409 browserViewportSize,
14181410 mode,
14191411 customModePrompts,
1412+ customInstructions,
14201413 experiments,
14211414 enableMcpServerCreation,
14221415 browserToolEnabled,
@@ -1442,7 +1435,7 @@ export class Task extends EventEmitter<ClineEvents> {
14421435 mode ,
14431436 customModePrompts ,
14441437 customModes ,
1445- this . customInstructions ,
1438+ customInstructions ,
14461439 this . diffEnabled ,
14471440 experiments ,
14481441 enableMcpServerCreation ,
0 commit comments