fix: avoid duplicate feedback command output on submit

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 <noreply@letta.com>
This commit is contained in:
cpacker
2026-02-09 18:21:59 -08:00
parent 06d5d71caf
commit 19e95153bb

View File

@@ -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...");