makecindy / makecindy/cindy

[Bug] 切换 agent 后自动审批权限不生效并在首次请求时回退

Open
#831 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
401
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**客户端版本**: 0.1.20
**反馈类型**: bug

---

## 现象
在新建对话中从 Codex 切换到 Claude Code 后,将权限模式切换为“自动审批”不会生效。首次出现工具权限请求时,权限状态会自动回退为默认权限;之后所有工具操作仍持续请求权限。

## 复现步骤
1. 新建一个使用 Codex 的对话窗口。
2. 在同一窗口中将 agent 切换为 Claude Code。
3. 开始对话。
4. 将权限模式切换为“自动审批”。
5. 触发任意工具操作,观察权限请求和权限模式状态。

## 期望行为
切换到“自动审批”后,该模式应保持生效,后续符合该模式的工具操作不应反复请求权限,除非用户手动切回其他权限模式。

## 实际行为
- 首次工具权限请求出现时,权限模式回退为默认权限。
- 后续所有工具操作都会继续请求权限。

## 复现频率
尚未确认是否每次都能稳定复现。
---
**OS**: darwin arm64 (25.5.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported flow: switch a new conversation from Codex to Claude Code, enable automatic approval, and trigger a tool operation. Trace where agent switching and permission-mode state are handled, then verify that automatic approval remains selected and subsequent eligible tool operations do not request permission repeatedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, authorization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.