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:
@@ -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...");
|
||||
|
||||
Reference in New Issue
Block a user