Skip to content
Merged
Changes from 2 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
10 changes: 10 additions & 0 deletions src/core/assistant-message/presentAssistantMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ export async function presentAssistantMessage(cline: Task) {
}

const handleError = async (action: string, error: Error) => {
// Silently ignore "ask promise was ignored" errors - this is an internal control flow
// signal, not an actual error. It occurs when a newer ask supersedes an older one.
if (error.message?.includes("ask promise was ignored")) {
return
}
const errorString = `Error ${action}: ${JSON.stringify(serializeError(error))}`
await cline.say(
"error",
Expand Down Expand Up @@ -610,6 +615,11 @@ export async function presentAssistantMessage(cline: Task) {
}

const handleError = async (action: string, error: Error) => {
// Silently ignore "ask promise was ignored" errors - this is an internal control flow
// signal, not an actual error. It occurs when a newer ask supersedes an older one.
if (error.message?.includes("ask promise was ignored")) {
return
}
const errorString = `Error ${action}: ${JSON.stringify(serializeError(error))}`

await cline.say(
Expand Down
Loading