fix: 修复 permission 面板

This commit is contained in:
claude-code-best
2026-04-09 21:54:46 +08:00
parent e6affc7053
commit 01cf45f4ac
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
import * as React from 'react'
import { useCallback, useEffect, useState } from 'react'
// eslint-disable-next-line custom-rules/prefer-use-keybindings -- 'r' is a view-specific key, not a global keybinding
import { Box, Text, useInput } from '@anthropic/ink'
import { Box, Text, useInput, useTabHeaderFocus } from '@anthropic/ink'
import {
type AutoModeDenial,
getAutoModeDenials,

View File

@@ -4,7 +4,7 @@ import { useCallback, useEffect } from 'react'
import { getOriginalCwd } from '../../../bootstrap/state.js'
import type { CommandResultDisplay } from '../../../commands.js'
import { Select } from '../../../components/CustomSelect/select.js'
import { Box, Text } from '@anthropic/ink'
import { Box, Text, useTabHeaderFocus } from '@anthropic/ink'
import type { ToolPermissionContext } from '../../../Tool.js'
type Props = {