Просмотр исходного кода

feat: add tool_details keybind w/ no default (#4976)

Co-authored-by: Aiden Cline <[email protected]>
Ariane Emory 2 месяцев назад
Родитель
Сommit
c00d4885c6

+ 1 - 0
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",
       title: showDetails() ? "Hide tool details" : "Show tool details",
       value: "session.toggle.actions",
       value: "session.toggle.actions",
+      keybind: "tool_details",
       category: "Session",
       category: "Session",
       onSelect: (dialog) => {
       onSelect: (dialog) => {
         const newValue = !showDetails()
         const newValue = !showDetails()

+ 1 - 0
packages/opencode/src/config/config.ts

@@ -427,6 +427,7 @@ export namespace Config {
         .optional()
         .optional()
         .default("<leader>h")
         .default("<leader>h")
         .describe("Toggle code block concealment in messages"),
         .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_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: 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"),
       model_cycle_recent_reverse: z.string().optional().default("shift+f2").describe("Previous recently used model"),

+ 4 - 0
packages/sdk/js/src/gen/types.gen.ts

@@ -816,6 +816,10 @@ export type KeybindsConfig = {
    * Toggle code block concealment in messages
    * Toggle code block concealment in messages
    */
    */
   messages_toggle_conceal?: string
   messages_toggle_conceal?: string
+  /**
+   * Toggle tool details visibility
+   */
+  tool_details?: string
   /**
   /**
    * List available models
    * List available models
    */
    */