makecindy / makecindy/cindy

添加 xAI 订阅授权供应商时,浏览器授权完成后客户端卡在「连接」步骤无法完成

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

Description

**提交人**: Tom Wu
**客户端版本**: 0.1.64

---

## 现象
在「设置 → 模型供应商」中添加 xAI 供应商、选择「通过浏览器完成订阅授权,无需 API Key」方式时,流程走到第 2 步「连接」后:浏览器中 xAI 授权页(页面标题显示为「Grok Build」,为 xAI 生态共用的 OAuth 客户端)可以正常登录并完成授权,页面随后显示一串授权码;但 Cindy 的添加窗口一直停留在「连接」步骤的等待转圈状态,永远不会完成。

该弹窗中没有任何可以把授权码粘贴回去的输入框,唯一可操作的按钮是「取消」。也就是说流程似乎设计为自动检测授权完成,但客户端始终检测不到。

## 复现步骤
1. 打开「设置 → 模型供应商 → 添加供应商」,选择 xAI
2. 选择订阅授权方式(无需 API Key),进入第 2 步「连接」
3. 浏览器打开 xAI 授权页,登录账号并完成授权
4. 授权页显示一串授权码
5. 回到 Cindy,添加窗口停留在「连接」步骤持续转圈,无限等待,只能取消

## 期望行为
浏览器授权完成后,Cindy 应自动检测到授权成功并保存供应商凭证、完成添加;或至少在弹窗中提供粘贴授权码的输入框作为兜底。

## 实际行为
添加窗口永远停留在「连接」步骤的等待状态,授权无法完成,供应商添加不上。多次尝试后,供应商列表中会留下「已停用,凭证已保留」的条目。

## 复现频率
每次必现。用户从未成功添加过该订阅授权。

## 已尝试
- 重新走完整授权流程:无效
- 重启 Cindy:无效
- 开关网络代理:无效
- 更换默认浏览器:尚未尝试

(用户已同意附带经过脱敏的诊断摘要。)
---
**OS**: darwin arm64 (27.0.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by reproducing the xAI subscription authorization flow and tracing how the desktop client detects completion of the browser OAuth step; verify how the authorization code is returned and how credentials are saved. Done means the connection step completes and the provider is added, or a documented authorization-code fallback works without leaving disabled entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.