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:
claude-code-best
2026-05-05 00:09:27 +08:00
parent 8a5ef8c9cb
commit 4d0048a60a
6 changed files with 118 additions and 10 deletions

View File

@@ -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>
</>

View File

@@ -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',