diff options
| author | Ariane Emory <[email protected]> | 2025-12-03 14:38:09 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-03 13:38:09 -0600 |
| commit | c00d4885c682ed6539a68144c3baf392d153b6a4 (patch) | |
| tree | e25298e2f6dd36cd7bf83d7b33b0e595afdee698 | |
| parent | 70f47223569c960e6f8c696a0248e913c6d9e5ed (diff) | |
| download | opencode-c00d4885c682ed6539a68144c3baf392d153b6a4.tar.gz opencode-c00d4885c682ed6539a68144c3baf392d153b6a4.zip | |
feat: add tool_details keybind w/ no default (#4976)
Co-authored-by: Aiden Cline <[email protected]>
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | 1 | ||||
| -rw-r--r-- | packages/opencode/src/config/config.ts | 1 | ||||
| -rw-r--r-- | packages/sdk/js/src/gen/types.gen.ts | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx index b97b89c12..5d9ebbc7a 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -483,6 +483,7 @@ export function Session() { { title: showDetails() ? "Hide tool details" : "Show tool details", value: "session.toggle.actions", + keybind: "tool_details", category: "Session", onSelect: (dialog) => { const newValue = !showDetails() diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts index 09a9e63b9..2bdbbca5b 100644 --- a/packages/opencode/src/config/config.ts +++ b/packages/opencode/src/config/config.ts @@ -427,6 +427,7 @@ export namespace Config { .optional() .default("<leader>h") .describe("Toggle code block concealment in messages"), + tool_details: z.string().optional().default("none").describe("Toggle tool details visibility"), model_list: z.string().optional().default("<leader>m").describe("List available models"), model_cycle_recent: z.string().optional().default("f2").describe("Next recently used model"), model_cycle_recent_reverse: z.string().optional().default("shift+f2").describe("Previous recently used model"), diff --git a/packages/sdk/js/src/gen/types.gen.ts b/packages/sdk/js/src/gen/types.gen.ts index 8ecb12935..80348fb9a 100644 --- a/packages/sdk/js/src/gen/types.gen.ts +++ b/packages/sdk/js/src/gen/types.gen.ts @@ -817,6 +817,10 @@ export type KeybindsConfig = { */ messages_toggle_conceal?: string /** + * Toggle tool details visibility + */ + tool_details?: string + /** * List available models */ model_list?: string |
