Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## [v5.4.0] - 2026-02-12

### Added

- Open plan in editor functionality for better plan management
- Better fuzzy search for improved file context matching

### Changed

- Cleaner chat interface with improved UI
- Better diff view for edit tool
- Edit tool improvements with context search enhancements
- Minor UI update to task header

---

## [v5.3.4] - 2026-02-03

### Fixed
Expand Down Expand Up @@ -66,6 +82,38 @@

---

## [v5.2.9] - 2026-01-27

### Changed

- Minor update to system prompt for long running command tool

---

## [v5.2.8] - 2026-01-27

### Fixed

- Minor patch in line diff counter logic

---

## [v5.2.7] - 2026-01-27

### Changed

- Minor update to system prompt for long running command tool

---

## [v5.2.6] - 2026-01-21

### Changed

- Minor update to system prompt for long running command tool

---

## [v5.2.5] - 2026-01-21

### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/mode.ts

Large diffs are not rendered by default.

23 changes: 0 additions & 23 deletions src/core/task/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1969,29 +1969,6 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
)
}

if (this.consecutiveMistakeLimit > 0 && this.consecutiveMistakeCount >= this.consecutiveMistakeLimit) {
const { response, text, images } = await this.ask(
"mistake_limit_reached",
t("common:errors.mistake_limit_guidance"),
)

if (response === "messageResponse") {
currentUserContent.push(
...[
{ type: "text" as const, text: formatResponse.tooManyMistakes(text) },
...formatResponse.imageBlocks(images),
],
)

await this.say("user_feedback", text, images)

// Track consecutive mistake errors in telemetry.
TelemetryService.instance.captureConsecutiveMistakeError(this.taskId)
}

this.consecutiveMistakeCount = 0
}

// In this Cline request loop, we need to check if this task instance
// has been asked to wait for a subtask to finish before continuing.
const provider = this.providerRef.deref()
Expand Down
10 changes: 2 additions & 8 deletions src/core/tools/fileEditTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export async function fileEditTool(
await cline.diffViewProvider.saveDirectly(
relPath,
newString ?? "",
!isPreventFocusDisruptionEnabled,
false,
diagnosticsEnabled,
writeDelayMs,
)
Expand Down Expand Up @@ -167,13 +167,7 @@ export async function fileEditTool(
cline.diffViewProvider.editType = fileExists ? "modify" : "create"
cline.diffViewProvider.originalContent = originalContent

await cline.diffViewProvider.saveDirectly(
relPath,
newContent,
!isPreventFocusDisruptionEnabled,
diagnosticsEnabled,
writeDelayMs,
)
await cline.diffViewProvider.saveDirectly(relPath, newContent, false, diagnosticsEnabled, writeDelayMs)

const sayMessageProps: ClineSayTool = {
tool: "fileEdit",
Expand Down
19 changes: 19 additions & 0 deletions src/core/webview/webviewMessageHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4761,6 +4761,25 @@ ${comment.suggestion}
}
break
}
case "openPlanFile": {
if (message.payload) {
const { planFile } = message.payload as { planFile: string }
const currentTask = provider.getCurrentTask()
if (currentTask) {
const { getPlanMemoryDirectoryPath } = await import("../../utils/storage")
const globalStoragePath = provider.contextProxy.globalStorageUri.fsPath
const planMemoryDir = await getPlanMemoryDirectoryPath(globalStoragePath, currentTask.taskId)
const planFilePath = path.join(planMemoryDir, planFile)
try {
const document = await vscode.workspace.openTextDocument(vscode.Uri.file(planFilePath))
await vscode.window.showTextDocument(document, { preview: false })
} catch (error) {
console.error("Failed to open plan file:", error)
}
}
}
break
}
// kilocode_change end
}
}
Loading
Loading