From 19e95153bb86a3252092fdbef72c5602ce225282 Mon Sep 17 00:00:00 2001 From: cpacker Date: Mon, 9 Feb 2026 18:21:59 -0800 Subject: [PATCH] fix: avoid duplicate feedback command output on submit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Consume the /feedback overlay command handle before closing the dialog so closeOverlay doesn't finish it as "Feedback dialog dismissed" when feedback submission will emit its own success/failure output. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta --- src/cli/App.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index 02792df..7b9971f 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -9515,10 +9515,12 @@ ${SYSTEM_REMINDER_CLOSE} // Handle escape when profile confirmation is pending const handleFeedbackSubmit = useCallback( async (message: string) => { + // Consume command handle BEFORE closing overlay; otherwise closeOverlay() + // finishes it as "Feedback dialog dismissed" and we emit a duplicate entry. + const overlayCommand = consumeOverlayCommand("feedback"); closeOverlay(); await withCommandLock(async () => { - const overlayCommand = consumeOverlayCommand("feedback"); const cmd = overlayCommand ?? commandRunner.start("/feedback", "Sending feedback...");