Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b02e276
fix(tui): move KV-persisted toggles from Session to System category
ariane-emory Feb 13, 2026
6013a88
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Feb 13, 2026
0b10e4f
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Feb 14, 2026
bbf5c65
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Feb 14, 2026
9be2b63
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Feb 15, 2026
8001afa
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Feb 17, 2026
ca35fb8
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Feb 19, 2026
8b92e4e
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Feb 20, 2026
17dd23d
Merge dev into feat/command-palette-consistecy
ariane-emory Feb 20, 2026
d5fc48b
Merge branch 'feat/command-palette-consistecy' of github.com:ariane-e…
ariane-emory Feb 20, 2026
a57a258
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Feb 20, 2026
d335110
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Feb 21, 2026
17b2a25
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Feb 26, 2026
c00e675
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Feb 26, 2026
d3c0676
fix: move 'Show generic tool output' from Session to System category
ariane-emory Mar 2, 2026
31b6e13
feat: move session scrollbar toggle to System category with condition…
ariane-emory Mar 3, 2026
aaab251
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Mar 5, 2026
fe5490d
fix: Move sidebar and header toggles to System category (completes co…
ariane-emory Mar 6, 2026
30d19f4
Complete command palette consistency: move scrollbar and generic_tool…
ariane-emory Mar 6, 2026
ebe4e8b
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Mar 8, 2026
09cfecd
fix: move sidebar_toggle command to app.tsx as System command
ariane-emory Mar 8, 2026
26ca536
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Mar 8, 2026
d8eee7a
Merge branch 'dev' into feat/command-palette-consistecy
ariane-emory Mar 13, 2026
5fa514c
Merge branch 'dev' into feat/command-palette-consistency
ariane-emory Mar 20, 2026
e380a7d
Merge branch 'dev' into feat/command-palette-consistency
ariane-emory Mar 20, 2026
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
77 changes: 77 additions & 0 deletions packages/opencode/src/cli/cmd/tui/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,83 @@ function App() {
dialog.clear()
},
},
{
title: kv.get("timestamps", "hide") === "show" ? "Hide timestamps" : "Show timestamps",
value: "app.toggle.timestamps",
category: "System",
slash: {
name: "timestamps",
aliases: ["toggle-timestamps"],
},
onSelect: (dialog) => {
const current = kv.get("timestamps", "hide")
kv.set("timestamps", current === "show" ? "hide" : "show")
dialog.clear()
},
},
{
title: kv.get("thinking_visibility", true) ? "Hide thinking" : "Show thinking",
value: "app.toggle.thinking",
keybind: "display_thinking",
category: "System",
slash: {
name: "thinking",
aliases: ["toggle-thinking"],
},
onSelect: (dialog) => {
kv.set("thinking_visibility", !kv.get("thinking_visibility", true))
dialog.clear()
},
},
{
title: kv.get("tool_details_visibility", true) ? "Hide tool details" : "Show tool details",
value: "app.toggle.tooldetails",
keybind: "tool_details",
category: "System",
onSelect: (dialog) => {
kv.set("tool_details_visibility", !kv.get("tool_details_visibility", true))
dialog.clear()
},
},
{
title: kv.get("header_visible", true) ? "Hide header" : "Show header",
value: "app.toggle.header",
category: "System",
onSelect: (dialog) => {
kv.set("header_visible", !kv.get("header_visible", true))
dialog.clear()
},
},
{
title: kv.get("scrollbar_visible", true) ? "Hide session scrollbar" : "Show session scrollbar",
value: "app.toggle.scrollbar",
keybind: "scrollbar_toggle",
category: "System",
onSelect: (dialog) => {
kv.set("scrollbar_visible", !kv.get("scrollbar_visible", true))
dialog.clear()
},
},
{
title: kv.get("generic_tool_output_visibility", false) ? "Hide generic tool output" : "Show generic tool output",
value: "app.toggle.generic_tool_output",
category: "System",
onSelect: (dialog) => {
kv.set("generic_tool_output_visibility", !kv.get("generic_tool_output_visibility", false))
dialog.clear()
},
},
{
title: kv.get("sidebar", "auto") === "auto" ? "Hide sidebar" : "Show sidebar",
value: "app.toggle.sidebar",
keybind: "sidebar_toggle",
category: "System",
onSelect: (dialog) => {
const current = kv.get("sidebar", "auto")
kv.set("sidebar", current === "auto" ? "hide" : "auto")
dialog.clear()
},
},
])

sdk.event.on(TuiEvent.CommandExecute.type, (evt) => {
Expand Down
79 changes: 0 additions & 79 deletions packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -565,20 +565,6 @@ export function Session() {
})
},
},
{
title: sidebarVisible() ? "Hide sidebar" : "Show sidebar",
value: "session.sidebar.toggle",
keybind: "sidebar_toggle",
category: "Session",
onSelect: (dialog) => {
batch(() => {
const isVisible = sidebarVisible()
setSidebar(() => (isVisible ? "hide" : "auto"))
setSidebarOpen(!isVisible)
})
dialog.clear()
},
},
{
title: conceal() ? "Disable code concealment" : "Enable code concealment",
value: "session.toggle.conceal",
Expand All @@ -589,71 +575,6 @@ export function Session() {
dialog.clear()
},
},
{
title: showTimestamps() ? "Hide timestamps" : "Show timestamps",
value: "session.toggle.timestamps",
category: "Session",
slash: {
name: "timestamps",
aliases: ["toggle-timestamps"],
},
onSelect: (dialog) => {
setTimestamps((prev) => (prev === "show" ? "hide" : "show"))
dialog.clear()
},
},
{
title: showThinking() ? "Hide thinking" : "Show thinking",
value: "session.toggle.thinking",
keybind: "display_thinking",
category: "Session",
slash: {
name: "thinking",
aliases: ["toggle-thinking"],
},
onSelect: (dialog) => {
setShowThinking((prev) => !prev)
dialog.clear()
},
},
{
title: showDetails() ? "Hide tool details" : "Show tool details",
value: "session.toggle.actions",
keybind: "tool_details",
category: "Session",
onSelect: (dialog) => {
setShowDetails((prev) => !prev)
dialog.clear()
},
},
{
title: "Toggle session scrollbar",
value: "session.toggle.scrollbar",
keybind: "scrollbar_toggle",
category: "Session",
onSelect: (dialog) => {
setShowScrollbar((prev) => !prev)
dialog.clear()
},
},
{
title: showHeader() ? "Hide header" : "Show header",
value: "session.toggle.header",
category: "Session",
onSelect: (dialog) => {
setShowHeader((prev) => !prev)
dialog.clear()
},
},
{
title: showGenericToolOutput() ? "Hide generic tool output" : "Show generic tool output",
value: "session.toggle.generic_tool_output",
category: "Session",
onSelect: (dialog) => {
setShowGenericToolOutput((prev) => !prev)
dialog.clear()
},
},
{
title: "Page up",
value: "session.page.up",
Expand Down