Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/export-dialog-checkbox-click.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kilocode/cli": patch
---

Toggle export dialog checkboxes on mouse click
20 changes: 16 additions & 4 deletions packages/opencode/src/cli/cmd/tui/ui/dialog-export-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ export function DialogExportOptions(props: DialogExportOptionsProps) {
gap={2}
paddingLeft={1}
backgroundColor={store.active === "thinking" ? theme.backgroundElement : undefined}
onMouseUp={() => setStore("active", "thinking")}
onMouseUp={() => { // kilocode_change start
setStore("active", "thinking")
setStore("thinking", !store.thinking)
} /* kilocode_change end */}
>
<text fg={store.active === "thinking" ? theme.primary : theme.textMuted}>
{store.thinking ? "[x]" : "[ ]"}
Expand All @@ -132,7 +135,10 @@ export function DialogExportOptions(props: DialogExportOptionsProps) {
gap={2}
paddingLeft={1}
backgroundColor={store.active === "toolDetails" ? theme.backgroundElement : undefined}
onMouseUp={() => setStore("active", "toolDetails")}
onMouseUp={() => { // kilocode_change start
setStore("active", "toolDetails")
setStore("toolDetails", !store.toolDetails)
} /* kilocode_change end */}
>
<text fg={store.active === "toolDetails" ? theme.primary : theme.textMuted}>
{store.toolDetails ? "[x]" : "[ ]"}
Expand All @@ -144,7 +150,10 @@ export function DialogExportOptions(props: DialogExportOptionsProps) {
gap={2}
paddingLeft={1}
backgroundColor={store.active === "assistantMetadata" ? theme.backgroundElement : undefined}
onMouseUp={() => setStore("active", "assistantMetadata")}
onMouseUp={() => { // kilocode_change start
setStore("active", "assistantMetadata")
setStore("assistantMetadata", !store.assistantMetadata)
} /* kilocode_change end */}
>
<text fg={store.active === "assistantMetadata" ? theme.primary : theme.textMuted}>
{store.assistantMetadata ? "[x]" : "[ ]"}
Expand All @@ -156,7 +165,10 @@ export function DialogExportOptions(props: DialogExportOptionsProps) {
gap={2}
paddingLeft={1}
backgroundColor={store.active === "openWithoutSaving" ? theme.backgroundElement : undefined}
onMouseUp={() => setStore("active", "openWithoutSaving")}
onMouseUp={() => { // kilocode_change start
setStore("active", "openWithoutSaving")
setStore("openWithoutSaving", !store.openWithoutSaving)
} /* kilocode_change end */}
>
<text fg={store.active === "openWithoutSaving" ? theme.primary : theme.textMuted}>
{store.openWithoutSaving ? "[x]" : "[ ]"}
Expand Down
Loading