Skip to content

Commit 62cfb68

Browse files
committed
fix(tui): move KV-persisted toggles from Session to System category
Move four command palette items that persist via KV store to the System category for consistency: - Show/Hide timestamps - Show/Hide thinking - Show/Hide tool details - Show/Hide header These toggles persist across sessions, so they belong in System rather than Session. Resolves #158
1 parent d1ee4c8 commit 62cfb68

File tree

1 file changed

+4
-4
lines changed
  • packages/opencode/src/cli/cmd/tui/routes/session

1 file changed

+4
-4
lines changed

packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ export function Session() {
539539
{
540540
title: showTimestamps() ? "Hide timestamps" : "Show timestamps",
541541
value: "session.toggle.timestamps",
542-
category: "Session",
542+
category: "System",
543543
slash: {
544544
name: "timestamps",
545545
aliases: ["toggle-timestamps"],
@@ -553,7 +553,7 @@ export function Session() {
553553
title: showThinking() ? "Hide thinking" : "Show thinking",
554554
value: "session.toggle.thinking",
555555
keybind: "display_thinking",
556-
category: "Session",
556+
category: "System",
557557
slash: {
558558
name: "thinking",
559559
aliases: ["toggle-thinking"],
@@ -567,7 +567,7 @@ export function Session() {
567567
title: showDetails() ? "Hide tool details" : "Show tool details",
568568
value: "session.toggle.actions",
569569
keybind: "tool_details",
570-
category: "Session",
570+
category: "System",
571571
onSelect: (dialog) => {
572572
setShowDetails((prev) => !prev)
573573
dialog.clear()
@@ -586,7 +586,7 @@ export function Session() {
586586
{
587587
title: showHeader() ? "Hide header" : "Show header",
588588
value: "session.toggle.header",
589-
category: "Session",
589+
category: "System",
590590
onSelect: (dialog) => {
591591
setShowHeader((prev) => !prev)
592592
dialog.clear()

0 commit comments

Comments
 (0)