Jelajahi Sumber

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

Nate Williams 5 bulan lalu
induk
melakukan
5b5b791d75

+ 1 - 1
packages/opencode/src/cli/cmd/tui/ui/dialog-export-options.tsx

@@ -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)