-
Notifications
You must be signed in to change notification settings - Fork 2k
Claude OAuth:0.60.3 中选择“始终允许”并添加钥匙串授权后,仍反复索要密码 #3798
Copy link
Copy link
Open
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.This issue is about auth, provider routing, model choice, or SecretRef resolution.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.User-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.Thin issue quality; more reproduction proof or environment detail is needed.
Description
Activity
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.This issue is about auth, provider routing, model choice, or SecretRef resolution.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.User-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.Thin issue quality; more reproduction proof or environment detail is needed.
问题描述
使用 Claude Code CLI,并在 CodexBar 中通过 OAuth API 获取 5 小时/每周用量。已经在 macOS 钥匙串授权窗口选择过“始终允许”,也曾手动将 CodexBar 加入
Claude Code-credentials的允许访问列表,但之后仍反复出现同一凭据的密码授权窗口。希望确认:这是当前版本已知的 Claude 凭据更新/访问控制问题,还是还需要检查应用签名或其他授权条件?“始终允许”无法持续生效的原因及处理办法,目前对用户不够清楚。
环境与设置
/Applications/CodexBar.app。Allow reading Claude Code's credentials:开启。always(界面“始终允许提示”)。debugDisableKeychainAccess:false。adaptiveAgentAware。实际经过与验证
Claude OAuth credentials not found. Run claude to authenticate.。Claude Code-credentials条目实际存在。使用现有令牌直接请求官方 OAuth 用量接口返回 HTTP 200;令牌未输出或保存到文件。Keychain preflight requires interaction for the current process。security工具。经授权,仅将/Applications/CodexBar.app添加到该条目的允许列表并保存。Claude Code-credentials,提供“始终允许/拒绝/允许”按钮。security和CodexBar,“询问钥匙串密码”未勾选。因此不能据此断言检查当时 CodexBar 已从列表消失,也未捕获到 ACL 改写前后的完整证据。复发发生在继续日常使用 Claude Code 之后;尚未确定精确触发动作和每次发生的时间间隔。
预期结果
在用户已经授权后,尽可能持续正常刷新。如果 Claude Code 的凭据生命周期使“始终允许”无法持久生效,希望 CodexBar 能明确解释限制并给出可靠的恢复方式,避免让用户反复输入密码却以为已经永久解决。
可能原因与待确认点
0.60.3 的源码注释说明:Claude Code 在刷新令牌时会重写其钥匙串条目并替换 ACL,使授予 CodexBar 的权限可能是临时的,导致重复密码弹窗。
这与现象相符,但本次并未证明每次弹窗都是 ACL 被覆盖引起的;也未完成运行中应用与 ACL 内代码签名要求的比对。希望维护者协助区分凭据重写、签名/路径不匹配或其他原因。
另外,“始终允许提示”与 macOS 的“始终允许”含义不同,容易混淆。改成“仅在用户操作时提示”可以减少后台打扰,但可能让用量在需要重新授权时停止更新,不能算完整解决。
相关报告
Claude Code-credentialstrusted-app ACL names a different bundle path than the running app #2884:记录了路径/授权持久化相关的类似现象,已关闭;本报告尚未证明是相同根因。本报告未附密码、令牌、账号邮箱或原始钥匙串内容。