Elffuss BraidHub

kikocis/continue public

fix: prevent UI freeze when ⌘I pressed without active editor

pressing ⌘I in chat mode to switch to edit mode when no editor is
focused previously led to an unrecoverable error state in the secondary
sidebar.

this commit ensures that ⌘I action does nothing unless an editor is
focused, preventing the ui from freezing and allowing normal interaction
with the panel.
Changesetb49f18a43c864b3142d03789e445fb6a26ae804c15f72a0d24c68f193f2ec534
AuthorKeerthana Panyam <panyam.k@northeastern.edu> · 2025-07-07 13:45 -04:00
CommitterKeerthana Panyam <panyam.k@northeastern.edu> · 2025-07-08 09:49 -04:00
Parents5c0668b587e2

Browse the files at this changeset

1 file changed

modified gui/src/components/mainInput/Lump/LumpToolbar/EditToolbar.tsx +4 −2
@@ -28,9 +28,11 @@
2828 Back to {mode.charAt(0).toUpperCase() + mode.slice(1)}
2929 </span>
3030 <span className="truncate">
31- Editing{" "}
31+ Editing:{" "}
3232 <span className="italic">
33- {getEditFilenameAndRangeText(codeToEdit)}
33+ {codeToEdit
34+ ? getEditFilenameAndRangeText(codeToEdit)
35+ : "⚠️ No file selected"}
3436 </span>
3537 </span>
3638 </div>