mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 12:51:17 -05:00
Remove logs
This commit is contained in:
@@ -239,24 +239,17 @@ export class ClaudeDev {
|
|||||||
if (this.abort) {
|
if (this.abort) {
|
||||||
throw new Error("ClaudeDev instance aborted")
|
throw new Error("ClaudeDev instance aborted")
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
let askTs: number
|
let askTs: number
|
||||||
|
|
||||||
if (partial !== undefined) {
|
if (partial !== undefined) {
|
||||||
console.log(13)
|
|
||||||
const lastMessage = this.claudeMessages.at(-1)
|
const lastMessage = this.claudeMessages.at(-1)
|
||||||
const isUpdatingPreviousPartial =
|
const isUpdatingPreviousPartial =
|
||||||
lastMessage && lastMessage.partial && lastMessage.type === "ask" && lastMessage.ask === type
|
lastMessage && lastMessage.partial && lastMessage.type === "ask" && lastMessage.ask === type
|
||||||
if (partial) {
|
if (partial) {
|
||||||
console.log(14)
|
|
||||||
if (isUpdatingPreviousPartial) {
|
if (isUpdatingPreviousPartial) {
|
||||||
// existing partial message, so update it
|
// existing partial message, so update it
|
||||||
lastMessage.text = text
|
lastMessage.text = text
|
||||||
lastMessage.partial = partial
|
lastMessage.partial = partial
|
||||||
// todo be more efficient about saving and posting only new data or one whole message at a time so ignore partial for saves, and only post parts of partial message instead of whole array in new listener
|
// todo be more efficient about saving and posting only new data or one whole message at a time so ignore partial for saves, and only post parts of partial message instead of whole array in new listener
|
||||||
|
|
||||||
// await this.saveClaudeMessages()
|
// await this.saveClaudeMessages()
|
||||||
// await this.providerRef.deref()?.postStateToWebview()
|
// await this.providerRef.deref()?.postStateToWebview()
|
||||||
await this.providerRef
|
await this.providerRef
|
||||||
@@ -264,7 +257,6 @@ export class ClaudeDev {
|
|||||||
?.postMessageToWebview({ type: "partialMessage", partialMessage: lastMessage })
|
?.postMessageToWebview({ type: "partialMessage", partialMessage: lastMessage })
|
||||||
throw new Error("Current ask promise was ignored")
|
throw new Error("Current ask promise was ignored")
|
||||||
} else {
|
} else {
|
||||||
console.log(15)
|
|
||||||
// this is a new partial message, so add it with partial state
|
// this is a new partial message, so add it with partial state
|
||||||
// this.askResponse = undefined
|
// this.askResponse = undefined
|
||||||
// this.askResponseText = undefined
|
// this.askResponseText = undefined
|
||||||
@@ -276,10 +268,8 @@ export class ClaudeDev {
|
|||||||
throw new Error("Current ask promise was ignored")
|
throw new Error("Current ask promise was ignored")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(16)
|
|
||||||
// partial=false means its a complete version of a previously partial message
|
// partial=false means its a complete version of a previously partial message
|
||||||
if (isUpdatingPreviousPartial) {
|
if (isUpdatingPreviousPartial) {
|
||||||
console.log(17)
|
|
||||||
// this is the complete version of a previously partial message, so replace the partial with the complete version
|
// this is the complete version of a previously partial message, so replace the partial with the complete version
|
||||||
this.askResponse = undefined
|
this.askResponse = undefined
|
||||||
this.askResponseText = undefined
|
this.askResponseText = undefined
|
||||||
@@ -292,7 +282,6 @@ export class ClaudeDev {
|
|||||||
await this.saveClaudeMessages()
|
await this.saveClaudeMessages()
|
||||||
await this.providerRef.deref()?.postStateToWebview()
|
await this.providerRef.deref()?.postStateToWebview()
|
||||||
} else {
|
} else {
|
||||||
console.log(18)
|
|
||||||
// this is a new partial=false message, so add it like normal
|
// this is a new partial=false message, so add it like normal
|
||||||
this.askResponse = undefined
|
this.askResponse = undefined
|
||||||
this.askResponseText = undefined
|
this.askResponseText = undefined
|
||||||
@@ -305,7 +294,6 @@ export class ClaudeDev {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// this is a new non-partial message, so add it like normal
|
// this is a new non-partial message, so add it like normal
|
||||||
console.log(19)
|
|
||||||
// const lastMessage = this.claudeMessages.at(-1)
|
// const lastMessage = this.claudeMessages.at(-1)
|
||||||
this.askResponse = undefined
|
this.askResponse = undefined
|
||||||
this.askResponseText = undefined
|
this.askResponseText = undefined
|
||||||
@@ -316,8 +304,6 @@ export class ClaudeDev {
|
|||||||
await this.providerRef.deref()?.postStateToWebview()
|
await this.providerRef.deref()?.postStateToWebview()
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
// if (partial) {
|
// if (partial) {
|
||||||
// const lastMessage = this.claudeMessages.at(-1)
|
// const lastMessage = this.claudeMessages.at(-1)
|
||||||
// if (lastMessage && lastMessage.type === "ask" && lastMessage.ask === type) {
|
// if (lastMessage && lastMessage.type === "ask" && lastMessage.ask === type) {
|
||||||
@@ -1832,8 +1818,6 @@ ${this.customInstructions.trim()}
|
|||||||
// case "write_to_file":
|
// case "write_to_file":
|
||||||
// return this.writeToFile(toolInput.path, toolInput.content)
|
// return this.writeToFile(toolInput.path, toolInput.content)
|
||||||
|
|
||||||
// case "list_files":
|
|
||||||
// return this.listFiles(toolInput.path, toolInput.recursive)
|
|
||||||
// case "list_code_definition_names":
|
// case "list_code_definition_names":
|
||||||
// return this.listCodeDefinitionNames(toolInput.path)
|
// return this.listCodeDefinitionNames(toolInput.path)
|
||||||
// case "search_files":
|
// case "search_files":
|
||||||
|
|||||||
Reference in New Issue
Block a user