소스 검색

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

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Ariane Emory 8 달 전
부모
커밋
c00d4885c6
3개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
  2. 1 0
      packages/opencode/src/config/config.ts
  3. 4 0
      packages/sdk/js/src/gen/types.gen.ts

+ 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",
       value: "session.toggle.actions",
+      keybind: "tool_details",
       category: "Session",
       onSelect: (dialog) => {
         const newValue = !showDetails()

+ 1 - 0
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"),

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

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