fix: 移除 Settings 中未定义的 Gates 引用,修复 config 命令报错

Gates 是 Anthropic 内部组件,反编译版本中不存在,运行时引用导致 ReferenceError。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
claude-code-best 2026-04-01 15:40:00 +08:00
parent 64f79dc3be
commit a889ed8402

View File

@ -95,8 +95,7 @@ export function Settings(t0) {
}
let t7;
if ($[13] !== contentHeight) {
const GatesComponent = Gates as any;
t7 = false ? [<Tab key="gates" title="Gates"><GatesComponent onOwnsEscChange={setGatesOwnsEsc} contentHeight={contentHeight} /></Tab>] : [];
t7 = [];
$[13] = contentHeight;
$[14] = t7;
} else {