fix(tui): fix broken /export toggling (#16443)

This commit is contained in:
Nate Williams
2026-03-07 02:22:17 -05:00
committed by GitHub
parent 0b7a5b1e7b
commit 5b5b791d75

View File

@@ -56,7 +56,7 @@ export function DialogExportOptions(props: DialogExportOptionsProps) {
setStore("active", order[nextIndex])
evt.preventDefault()
}
if (evt.name === "space") {
if (evt.name === "space" || evt.name === " ") {
if (store.active === "thinking") setStore("thinking", !store.thinking)
if (store.active === "toolDetails") setStore("toolDetails", !store.toolDetails)
if (store.active === "assistantMetadata") setStore("assistantMetadata", !store.assistantMetadata)