Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
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
5 changes: 5 additions & 0 deletions .changeset/lucky-hairs-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"roo-cline": patch
---

Wrangle our settings-related types and add support for settings import / export
16 changes: 9 additions & 7 deletions src/core/Cline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ export class Cline extends EventEmitter<ClineEvents> {
}
}

const { terminalOutputLineLimit } = (await this.providerRef.deref()?.getState()) ?? {}
const { terminalOutputLineLimit = 500 } = (await this.providerRef.deref()?.getState()) ?? {}

process.on("line", (line) => {
if (!didContinue) {
Expand Down Expand Up @@ -2339,7 +2339,7 @@ export class Cline extends EventEmitter<ClineEvents> {
}

// Get the maxReadFileLine setting
const { maxReadFileLine } = (await this.providerRef.deref()?.getState()) ?? {}
const { maxReadFileLine = 500 } = (await this.providerRef.deref()?.getState()) ?? {}

// Count total lines in the file
let totalLines = 0
Expand Down Expand Up @@ -2480,13 +2480,14 @@ export class Cline extends EventEmitter<ClineEvents> {
this.consecutiveMistakeCount = 0
const absolutePath = path.resolve(this.cwd, relDirPath)
const [files, didHitLimit] = await listFiles(absolutePath, recursive, 200)
const { showRooIgnoredFiles } = (await this.providerRef.deref()?.getState()) ?? {}
const { showRooIgnoredFiles = true } =
(await this.providerRef.deref()?.getState()) ?? {}
const result = formatResponse.formatFilesList(
absolutePath,
files,
didHitLimit,
this.rooIgnoreController,
showRooIgnoredFiles ?? true,
showRooIgnoredFiles,
)
const completeMessage = JSON.stringify({
...sharedMessageProps,
Expand Down Expand Up @@ -3759,15 +3760,16 @@ export class Cline extends EventEmitter<ClineEvents> {
async getEnvironmentDetails(includeFileDetails: boolean = false) {
let details = ""

const { terminalOutputLineLimit, maxWorkspaceFiles } = (await this.providerRef.deref()?.getState()) ?? {}
const { terminalOutputLineLimit = 500, maxWorkspaceFiles = 200 } =
(await this.providerRef.deref()?.getState()) ?? {}

// It could be useful for cline to know if the user went from one or no file to another between messages, so we always include this context
details += "\n\n# VSCode Visible Files"
const visibleFilePaths = vscode.window.visibleTextEditors
?.map((editor) => editor.document?.uri?.fsPath)
.filter(Boolean)
.map((absolutePath) => path.relative(this.cwd, absolutePath))
.slice(0, maxWorkspaceFiles ?? 200)
.slice(0, maxWorkspaceFiles)

// Filter paths through rooIgnoreController
const allowedVisibleFiles = this.rooIgnoreController
Expand Down Expand Up @@ -3979,7 +3981,7 @@ export class Cline extends EventEmitter<ClineEvents> {
} else {
const maxFiles = maxWorkspaceFiles ?? 200
const [files, didHitLimit] = await listFiles(this.cwd, true, maxFiles)
const { showRooIgnoredFiles } = (await this.providerRef.deref()?.getState()) ?? {}
const { showRooIgnoredFiles = true } = (await this.providerRef.deref()?.getState()) ?? {}
const result = formatResponse.formatFilesList(
this.cwd,
files,
Expand Down
294 changes: 0 additions & 294 deletions src/core/config/ConfigManager.ts

This file was deleted.

Loading