mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 08:15:53 +00:00
fix: 优化权限提示用词和 Help 页面新手引导
- Help General 页添加 3 步 Getting started 引导,替代单段描述 - 权限对话框底部 "Esc to cancel" → "Esc to reject","Tab to amend" → "Tab to add feedback" - .claude/ 文件夹权限选项标签从 60 字符缩至 49 字符,避免窄终端截断 - 新增 10 个测试覆盖权限提示文案和帮助页引导内容 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -238,9 +238,9 @@ export function FilePermissionDialog<T extends ToolInput = ToolInput>({
|
||||
</PermissionDialog>
|
||||
<Box paddingX={1} marginTop={1}>
|
||||
<Text dimColor>
|
||||
Esc to cancel
|
||||
Esc to reject
|
||||
{((focusedOption === 'yes' && !yesInputMode) || (focusedOption === 'no' && !noInputMode)) &&
|
||||
' · Tab to amend'}
|
||||
' · Tab to add feedback'}
|
||||
</Text>
|
||||
</Box>
|
||||
</>
|
||||
|
||||
@@ -108,7 +108,7 @@ export function getFilePermissionOptions({
|
||||
// persisted permission rules.
|
||||
if ((inClaudeFolder || inGlobalClaudeFolder) && operationType !== 'read') {
|
||||
options.push({
|
||||
label: 'Yes, and allow Claude to edit its own settings for this session',
|
||||
label: 'Yes, allow edits to .claude/ config for this session',
|
||||
value: 'yes-claude-folder',
|
||||
option: {
|
||||
type: 'accept-session',
|
||||
|
||||
Reference in New Issue
Block a user