建议新增「新建对话的默认权限模式」设置,允许默认 Full Access
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: 伟程 汤
**客户端版本**: 0.1.61
---
## 使用场景
在桌面端的 Agent 对话里,每次新建对话都会回到「自动审批」(Auto-review)模式。对于习惯于免确认流程的用户,这每次都要手动切换到 Full Access,重复操作;自动审批模式下的逐项审批弹窗也会频繁打断工作流。
## 当前痛点
- 每次新建对话都要手动切换权限模式,重复且容易忘记。
- 自动审批模式的逐项审批弹窗会打断操作流程。
## 诉求
新增一个「新建对话默认权限模式」的设置项,可选值包含:
- 自动审批(Auto-review)
- Full Access(bypassPermissions)
用户可在设置里选择默认值,新建对话时以此为准,无需每次手动切换。
## 建议方案
- 源码中已存在权限模式的基础设施(permissionMode 枚举、defaultPermissionMode、以及 IM/worker 场景的 defaults.permissionMode 与 lastByVendor 记忆机制),但目前桌面端新建对话的默认权限是硬编码在会话创建流程中的 auto。
- 建议将该默认值抽到用户可配置的设置项,与已有的 IM/worker 默认权限设置对齐。
---
**版本区域**: CN
**OS**: darwin arm64 (25.5.0)
**界面语言**: zh-CN
Contributor guide
Research direction
Trace the desktop session creation flow where the default permission mode is hard-coded to auto, then compare it with permissionMode, defaultPermissionMode, and the IM/worker defaults.permissionMode and lastByVendor mechanisms mentioned in the issue. Add a user setting for Auto-review or Full Access and verify that new desktop conversations use the selected value without changing existing behavior by default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript
- Domain
- authorization, desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100