feat(terminal): add bypass permissions option to open terminal dialog / 打开终端时增加跳过权限检查选项#2509
Conversation
The /MANIFESTINPUT: and /MANIFEST:EMBED linker flags are MSVC-specific. On the GNU toolchain these flags cause build failures. Gate the entire manifest block behind `target_env = "msvc"` so non-MSVC builds succeed. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add a confirmation dialog when opening a terminal that lets users optionally enable --dangerously-skip-permissions mode. The dialog closes immediately on launch and shows success/error via toast. Backend changes: - Add bypassPermissions param to open_provider_terminal command - Thread bypass flag through all platform-specific launchers - Set env vars directly in launch scripts alongside --settings Frontend changes: - Confirmation dialog with checkbox and conditional warning - i18n translations for en/zh/ja Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
@claude review |
|
Claude finished @farion1231's task in 2m 1s —— View job PR Review: feat(terminal): add bypass permissions option to open terminal dialog
The PR cleanly adds the Rust Backend (
|
| Severity | Finding |
|---|---|
Long function signatures in launch_macos_terminal and launch_linux_terminal — will likely fail cargo fmt check |
|
| 🔵 Minor | bypassPermissions not reset in onOpenChange and Cancel button handler |
| 🔵 Minor | bypass || undefined pattern is correct but unclear |
The core feature — passing --dangerously-skip-permissions through the terminal launch scripts — is correctly implemented on all three platforms with appropriate UI warning text. The main actionable item before merge is fixing the Rust formatting to pass CI.
Summary / 概述
在使用特定供应商配置打开终端时,增加一个确认对话框,允许用户选择是否以
--dangerously-skip-permissions模式启动 Claude Code。--dangerously-skip-permissions标志Related Issue / 关联 Issue
Fixes #2508
Screenshots / 截图
Checklist / 检查清单
pnpm typecheckpasses / 通过 TypeScript 类型检查pnpm format:checkpasses / 通过代码格式检查cargo clippypasses (if Rust code changed) / 通过 Clippy 检查(如修改了 Rust 代码)