mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
fix(pr): revert out-of-scope console.log changes
This commit is contained in:
parent
275e2590aa
commit
b7140e814b
4 changed files with 0 additions and 16 deletions
|
|
@ -24,15 +24,12 @@ export function getCheckpointService(cline: Task) {
|
|||
}
|
||||
|
||||
if (cline.checkpointServiceInitializing) {
|
||||
console.log("[Task#getCheckpointService] checkpoint service is still initializing")
|
||||
return undefined
|
||||
}
|
||||
|
||||
const provider = cline.providerRef.deref()
|
||||
|
||||
const log = (message: string) => {
|
||||
console.log(message)
|
||||
|
||||
try {
|
||||
provider?.log(message)
|
||||
} catch (err) {
|
||||
|
|
@ -40,8 +37,6 @@ export function getCheckpointService(cline: Task) {
|
|||
}
|
||||
}
|
||||
|
||||
console.log("[Task#getCheckpointService] initializing checkpoints service")
|
||||
|
||||
try {
|
||||
const workspaceDir = getWorkspacePath()
|
||||
|
||||
|
|
@ -137,7 +132,6 @@ async function getInitializedCheckpointService(
|
|||
try {
|
||||
await pWaitFor(
|
||||
() => {
|
||||
console.log("[Task#getCheckpointService] waiting for service to initialize")
|
||||
return service.isInitialized
|
||||
},
|
||||
{ interval, timeout },
|
||||
|
|
|
|||
|
|
@ -741,8 +741,6 @@ export class Task extends EventEmitter<ClineEvents> {
|
|||
|
||||
let imageBlocks: Anthropic.ImageBlockParam[] = formatResponse.imageBlocks(images)
|
||||
|
||||
console.log(`[subtasks] task ${this.taskId}.${this.instanceId} starting`)
|
||||
|
||||
await this.initiateTaskLoop([
|
||||
{
|
||||
type: "text",
|
||||
|
|
@ -1008,8 +1006,6 @@ export class Task extends EventEmitter<ClineEvents> {
|
|||
|
||||
await this.overwriteApiConversationHistory(modifiedApiConversationHistory)
|
||||
|
||||
console.log(`[subtasks] task ${this.taskId}.${this.instanceId} resuming from history item`)
|
||||
|
||||
await this.initiateTaskLoop(newUserContent)
|
||||
}
|
||||
|
||||
|
|
@ -1289,7 +1285,6 @@ export class Task extends EventEmitter<ClineEvents> {
|
|||
// lastMessage.ts = Date.now() DO NOT update ts since it is used as a key for virtuoso list
|
||||
lastMessage.partial = false
|
||||
// instead of streaming partialMessage events, we do a save and post like normal to persist to disk
|
||||
console.log("updating partial message", lastMessage)
|
||||
// await this.saveClineMessages()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ export async function executeCommandTool(
|
|||
) {
|
||||
let command: string | undefined = block.params.command
|
||||
const customCwd: string | undefined = block.params.cwd
|
||||
console.log("executeCommandTool", command)
|
||||
|
||||
try {
|
||||
if (block.partial) {
|
||||
|
|
|
|||
|
|
@ -163,8 +163,6 @@ export class ClineProvider
|
|||
// The instance is pushed to the top of the stack (LIFO order).
|
||||
// When the task is completed, the top instance is removed, reactivating the previous task.
|
||||
async addClineToStack(cline: Task) {
|
||||
console.log(`[subtasks] adding task ${cline.taskId}.${cline.instanceId} to stack`)
|
||||
|
||||
// Add this cline instance into the stack that represents the order of all the called tasks.
|
||||
this.clineStack.push(cline)
|
||||
|
||||
|
|
@ -187,7 +185,6 @@ export class ClineProvider
|
|||
let cline = this.clineStack.pop()
|
||||
|
||||
if (cline) {
|
||||
console.log(`[subtasks] removing task ${cline.taskId}.${cline.instanceId} from stack`)
|
||||
try {
|
||||
// Abort the running task and set isAbandoned to true so
|
||||
// all running promises will exit as well.
|
||||
|
|
@ -226,7 +223,6 @@ export class ClineProvider
|
|||
// and resume the previous task/cline instance (if it exists)
|
||||
// this is used when a sub task is finished and the parent task needs to be resumed
|
||||
async finishSubTask(lastMessage: string) {
|
||||
console.log(`[subtasks] finishing subtask ${lastMessage}`)
|
||||
// remove the last cline instance from the stack (this is the finished sub task)
|
||||
await this.removeClineFromStack()
|
||||
// resume the last cline instance in the stack (if it exists - this is the 'parent' calling task)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue