fix(workspace): ignore duplicate submit in rename modal (#3549)

Pressing Enter in the name field fires both the text field's accepted
signal and the dialog's own Return handler, so submitAndClose() runs
twice. The first call renames and hides the window, which clears the
field; the second call then renames to an empty string and unsets the
workspace name. The OK button only fires once, so it was unaffected.

Ignore submits once the window is hidden.


Claude-Session: https://claude.ai/code/session_01791wgvD8EqJaAeURYXYbT5

Signed-off-by: Thomas Kroll <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Thomas Kroll
2026-09-23 14:05:16 -04:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 7e8c556ab6
commit eb0cb80884
@@ -44,6 +44,8 @@ DankFloatingWindow {
}
function submitAndClose() {
if (!root.visible)
return;
if (aqueousWorkspace || CompositorService.isAqueous) {
if (!aqueousWorkspace || renaming)
return;