Skip to content

Commit b7140e8

Browse files
committed
fix(pr): revert out-of-scope console.log changes
1 parent 275e259 commit b7140e8

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

src/core/checkpoints/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,19 @@ export function getCheckpointService(cline: Task) {
2424
}
2525

2626
if (cline.checkpointServiceInitializing) {
27-
console.log("[Task#getCheckpointService] checkpoint service is still initializing")
2827
return undefined
2928
}
3029

3130
const provider = cline.providerRef.deref()
3231

3332
const log = (message: string) => {
34-
console.log(message)
35-
3633
try {
3734
provider?.log(message)
3835
} catch (err) {
3936
// NO-OP
4037
}
4138
}
4239

43-
console.log("[Task#getCheckpointService] initializing checkpoints service")
44-
4540
try {
4641
const workspaceDir = getWorkspacePath()
4742

@@ -137,7 +132,6 @@ async function getInitializedCheckpointService(
137132
try {
138133
await pWaitFor(
139134
() => {
140-
console.log("[Task#getCheckpointService] waiting for service to initialize")
141135
return service.isInitialized
142136
},
143137
{ interval, timeout },

src/core/task/Task.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,6 @@ export class Task extends EventEmitter<ClineEvents> {
741741

742742
let imageBlocks: Anthropic.ImageBlockParam[] = formatResponse.imageBlocks(images)
743743

744-
console.log(`[subtasks] task ${this.taskId}.${this.instanceId} starting`)
745-
746744
await this.initiateTaskLoop([
747745
{
748746
type: "text",
@@ -1008,8 +1006,6 @@ export class Task extends EventEmitter<ClineEvents> {
10081006

10091007
await this.overwriteApiConversationHistory(modifiedApiConversationHistory)
10101008

1011-
console.log(`[subtasks] task ${this.taskId}.${this.instanceId} resuming from history item`)
1012-
10131009
await this.initiateTaskLoop(newUserContent)
10141010
}
10151011

@@ -1289,7 +1285,6 @@ export class Task extends EventEmitter<ClineEvents> {
12891285
// lastMessage.ts = Date.now() DO NOT update ts since it is used as a key for virtuoso list
12901286
lastMessage.partial = false
12911287
// instead of streaming partialMessage events, we do a save and post like normal to persist to disk
1292-
console.log("updating partial message", lastMessage)
12931288
// await this.saveClineMessages()
12941289
}
12951290

src/core/tools/executeCommandTool.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export async function executeCommandTool(
2727
) {
2828
let command: string | undefined = block.params.command
2929
const customCwd: string | undefined = block.params.cwd
30-
console.log("executeCommandTool", command)
3130

3231
try {
3332
if (block.partial) {

src/core/webview/ClineProvider.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ export class ClineProvider
163163
// The instance is pushed to the top of the stack (LIFO order).
164164
// When the task is completed, the top instance is removed, reactivating the previous task.
165165
async addClineToStack(cline: Task) {
166-
console.log(`[subtasks] adding task ${cline.taskId}.${cline.instanceId} to stack`)
167-
168166
// Add this cline instance into the stack that represents the order of all the called tasks.
169167
this.clineStack.push(cline)
170168

@@ -187,7 +185,6 @@ export class ClineProvider
187185
let cline = this.clineStack.pop()
188186

189187
if (cline) {
190-
console.log(`[subtasks] removing task ${cline.taskId}.${cline.instanceId} from stack`)
191188
try {
192189
// Abort the running task and set isAbandoned to true so
193190
// all running promises will exit as well.
@@ -226,7 +223,6 @@ export class ClineProvider
226223
// and resume the previous task/cline instance (if it exists)
227224
// this is used when a sub task is finished and the parent task needs to be resumed
228225
async finishSubTask(lastMessage: string) {
229-
console.log(`[subtasks] finishing subtask ${lastMessage}`)
230226
// remove the last cline instance from the stack (this is the finished sub task)
231227
await this.removeClineFromStack()
232228
// resume the last cline instance in the stack (if it exists - this is the 'parent' calling task)

0 commit comments

Comments
 (0)