Skip to content

Commit 39e790a

Browse files
committed
Fixed double messages after edit
1 parent bee50d6 commit 39e790a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/core/webview/webviewMessageHandler.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,15 +1132,8 @@ export const webviewMessageHandler = async (
11321132
// Force a state update to ensure the webview reflects the changes
11331133
await provider.postStateToWebview()
11341134

1135-
// Auto-resume the task after editing
1136-
// Use setTimeout to ensure the task is fully initialized and the ask dialog is ready
1137-
setTimeout(async () => {
1138-
const currentCline = provider.getCurrentCline()
1139-
if (currentCline && currentCline.isInitialized) {
1140-
// Simulate clicking "Resume Task" by sending the response directly
1141-
currentCline.handleWebviewAskResponse("messageResponse", message.text, message.images)
1142-
}
1143-
}, 100) // Small delay to ensure proper initialization
1135+
// Note: Removed auto-resume logic to prevent duplicate messages.
1136+
// The user will manually send the edited message when ready.
11441137
}
11451138
}
11461139
}

0 commit comments

Comments
 (0)