makecindy / makecindy/cindy

[Bug] 设置「自动操作」点击后出现 2-3 秒白屏

Open
#4,292 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

## 问题描述

在 CindyCN 0.1.79-beta 中进入「设置 → 自动操作」后,左侧设置导航会立即显示,但右侧内容会白屏约 2-3 秒,随后才开始渲染自动操作设置。

实际行为:设置页面不是立即可见,而是出现短暂空白或延迟。

期望行为:设置页面的基础内容应立即显示,浏览器状态和进程存活确认等后台检查不应阻塞整个页面。

## 环境

- Cindy 版本:0.1.79-beta(macOS arm64 hotfix)
- 平台:macOS arm64
- 安装方式:正式打包应用
- 区域:CN

## 复现步骤

1. 确保受管 Cindy Browser 未运行。
2. 打开 Cindy。
3. 进入「设置 → 自动操作」。
4. 观察右侧内容出现前的白屏时间。

## 日志与截图

本机日志确认运行的是 Cindy 0.1.79 打包版本。截图显示设置导航已出现,但自动操作内容区域暂时为空,约 2-3 秒后恢复渲染。

![点击后白屏](https://github.com/user-attachments/assets/784ee54d-4353-4749-a886-9b57a142a3e6)
![完成渲染](https://github.com/user-attachments/assets/251a2346-b807-4b57-ac9e-047acee664de)

## 源码定位

`ComputerUseSection` 在基础状态读取完成前返回 `null`。PR #3420 将设置页使用的浏览器 `status` 调用切换到 `ExternalChromeBackend`,并在 `running=false/unknown` 时增加 CDP 进程消失确认,导致被动状态探测额外等待约 1.5 秒。

## 建议方向

被动设置探测不应等待强进程存活确认;强确认可以保留在浏览器启动、停止和路由切换等安全边界操作中。

Contributor guide

Open the contributing guide

Research direction

Reproduce the delay through Settings → Automatic Actions, then start at ComputerUseSection and the status path changed by PR #3420. Inspect how ExternalChromeBackend performs passive status checks and preserve strong process confirmation only at the stated operation boundaries. Done means the settings content renders without the 2–3 second blank period while the existing checks remain effective where required.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.