mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
fix: remove noisy console.warn logs from NativeToolCallParser (#11264)
Remove two console.warn messages that fire excessively when loading tasks from history: - 'Attempting to finalize unknown tool call' in finalizeStreamingToolCall() - 'Received chunk for unknown tool call' in processStreamingChunk() The defensive null-return behavior is preserved; only the log output is removed.
This commit is contained in:
parent
f524e9d95e
commit
eb45b60cf0
1 changed files with 0 additions and 2 deletions
|
|
@ -250,7 +250,6 @@ export class NativeToolCallParser {
|
||||||
public static processStreamingChunk(id: string, chunk: string): ToolUse | null {
|
public static processStreamingChunk(id: string, chunk: string): ToolUse | null {
|
||||||
const toolCall = this.streamingToolCalls.get(id)
|
const toolCall = this.streamingToolCalls.get(id)
|
||||||
if (!toolCall) {
|
if (!toolCall) {
|
||||||
console.warn(`[NativeToolCallParser] Received chunk for unknown tool call: ${id}`)
|
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -295,7 +294,6 @@ export class NativeToolCallParser {
|
||||||
public static finalizeStreamingToolCall(id: string): ToolUse | McpToolUse | null {
|
public static finalizeStreamingToolCall(id: string): ToolUse | McpToolUse | null {
|
||||||
const toolCall = this.streamingToolCalls.get(id)
|
const toolCall = this.streamingToolCalls.get(id)
|
||||||
if (!toolCall) {
|
if (!toolCall) {
|
||||||
console.warn(`[NativeToolCallParser] Attempting to finalize unknown tool call: ${id}`)
|
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue