Commit Graph

64 Commits

Author SHA1 Message Date
Dash
e23d711db7 fix(desktop): restore expanded window width when reopening sidebar (#9725)
Assisted-by: Cindy (https://cindy.app)

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 21:21:14 +08:00
Dash
232a5fe508 fix(desktop): 侧边栏关闭时恢复独立主窗口的位置和大小 (#9661)
* fix(desktop): preserve standalone window bounds across sidebar resizing

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(desktop): keep Snap detection and off-screen restore correct with sidebar open

Address review: persistence view keeps real window for Snap/work-area fill
detection (own expansion is not a fill); closing the sidebar places the
saved rectangle back inside the work area if its display went away; sync
desktop-development rules with the restore behaviour.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(desktop): restore sidebar baseline on its own display

Judge the saved rectangle against the display it belongs to, so a window
moved to another connected display still returns to where it was; only a
removed or shrunk display relocates it.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 16:51:58 +08:00
Lizi
70eb974da4 Merge pull request #9031 from makecindy/cindy/noble-mendel
fix(menubar): 修复 macOS 菜单栏重复更新
2026-11-09 18:33:24 +08:00
Dash
218d467005 feat(desktop): 对齐手机版的消息排队展示与操作 (#9330)
* feat(desktop): align queued message bubbles and actions with mobile

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(desktop): fold queued plugin message pasted text once

The queued bubble passed an already-folded displayText together with the
original pastedTextRanges, so ranges past the shortened body were skipped
and the reference could not be opened. Pass the unfolded source text with
its ranges and let UserMessage fold it once.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(desktop): pass owning task id to queued message bubbles

Queued bubbles rendered without a sessionId, so images cached on the
execution computer of a device-linked task could not be resolved remotely.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-09 17:44:43 +08:00
DavidShen
3d66645e75 chore(menubar): keep native regression tests manual
Restore the existing CI workflow and matching contract tests; retain the native macOS regression tests and document the manual entry point.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-09 17:33:00 +08:00
DavidShen
f97515706d fix(menubar): avoid redundant native status button updates
Signed-off-by: DavidShen <david@xd.com>
2026-11-09 12:49:00 +08:00
Lizi
58739757d9 Merge pull request #9332 from makecindy/cindy/quirky-babbage
feat(desktop): 重启后提供可选的崩溃诊断
2026-11-08 20:18:44 +08:00
Lizi
26028f5e7d Merge pull request #9077 from makecindy/cindy/mcp-bridge-session-cleanup
fix(desktop): Pi / 远端 Claude 结束时关闭其 MCP 桥会话,修复主进程内存泄漏
2026-11-08 18:08:31 +08:00
Dash
c2a1bf6cee Merge origin/main to include device-link CI fixes
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-08 21:58:44 +13:00
Lizi
bcca75a386 Merge pull request #9367 from saintwinkle/fix/linux-tray-tooltip
fix(desktop): Linux 托盘图标设置悬停提示,不再显示内部图标 Id
2026-11-08 14:47:59 +08:00
Twinkle
f8e97adcf6 fix(desktop): Linux 托盘图标设置悬停提示,不再显示内部图标 Id
Signed-off-by: Twinkle <saintwinkle@gmail.com>
2026-11-08 13:33:08 +08:00
Chris
7ef2db28c4 fix(desktop): flag Rosetta-translated runs and stop disposed-frame crash
An upload from an Apple silicon Mac showed the darwin-x64 build running
under Rosetta: module evaluation before crashReporter took ~15.7 s per
launch versus 0.5-2.2 s on other macOS devices, and nothing in the app or
its logs said why. Log the translation state at startup and show a
sidebar notice (macOS only) pointing to the Apple silicon download.

The same upload ended in an uncaughtException: after the main renderer
was killed, the microphone permission broadcast and the shutdown
disposer read webContents.mainFrame, whose getter throws once the frame
is disposed. The trusted-renderer checks now fail closed instead of
throwing.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-08 12:05:00 +08:00
Dash
1cd2d47df7 feat(desktop): 重启后提供可选的崩溃诊断
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-08 15:18:53 +13:00
Dash
bab985d498 fix(desktop): preserve chat space and remember expanded sidebar width
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-07 18:27:06 +13:00
Dash
34f065e723 fix(scripts): restart 不再按借用的 Node 路径认领其他 checkout 的进程
另一份 checkout 借用本 checkout 自带的 node(或 pnpm 入口)启动 dev 时,
进程命令行开头带着本 checkout 的路径,本 checkout 的 restart 会把它当成
自己的实例整组杀掉。判断归属前先去掉命令行开头的 Node 运行时与包管理器
入口;Electron、electron-forge 等指向 checkout 自身依赖的路径仍是归属依据。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-06 22:15:12 +13:00
Lizi
dedb3568b2 Merge pull request #9024 from makecindy/cindy/fierce-feynman
chore(ui-check): PR 截图只放与改动相关的并排对照
2026-11-06 10:55:43 +08:00
Dash
f3f84c9a47 fix(desktop): close MCP bridge sessions when their Session ends
Pi (and remote Claude Code) reach the local MCP bridge through `?session=`
routes, and their processes exit without sending DELETE, so the
streamable-http transport never closes and every session keeps a full
McpServer with all tool schemas alive. On the personal build the Pi bridge
opened 77 sessions in 40 minutes and closed none while only one Pi process
was still running; the sampled main-process heap was ~200 MB of zod schema
objects built for these servers, growing ~500 MB/hour.

Each new bridge session now records the Session that opened it. When that
Session's registration is really removed (not a late dispose after a
reattach re-registered it), its sessions are closed. Local Codex children
do not use `?session=` and are unaffected; they already close their
sessions. The memory-usage line gains `mcpBridgeSessions` so a future
build-up shows directly.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-06 11:18:54 +13:00
Dash
b3ecbc0b14 feat(desktop): opt-in main-process heap sampling for leak hunting
The memory-usage log shows the main process growing with use but not what
is growing, and a full heap snapshot of a multi-GB main process freezes it
for a minute or more, so it cannot be taken on an instance in use.

Dev builds now start V8's sampling heap profiler when the logs directory's
log-config.json sets "mainHeapSampling": true. Every 30 minutes it writes
the raw .heapprofile (loadable in DevTools) and a summary ranking live
sampled memory by nearest main-bundle frame and by allocation frame under
logs/heap-sampling/, keeping the latest 48. Files stay local; the scope is
not in the upload allowlist. Packaged builds ignore the flag.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-06 09:41:51 +13:00
Dash
1b0f24d710 feat(desktop): log per-process memory in packaged builds
Personal-build logs show the main process growing steadily with use since
mid-October (40 MB to 1.2 GB per hour, up to 8.5 GB) until restart, but the
only per-process memory sampling was a dev-only console.log, so packaged
logs cannot show which process grows or whether it is JS heap or buffers.

Replace it with a `memory-usage` logger that samples every 10 minutes in
packaged builds (30 s in dev): main-process memoryUsage() breakdown plus
app.getAppMetrics() grouped by process type. The line carries only process
types and numbers, so the scope is added to the log upload allowlist as an
exact match.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-06 08:50:53 +13:00
Dash
4aca473900 chore(ui-check): PR 截图只放与改动相关的并排对照
ui:check:publish 原来把自检用的全量总览直接嵌进 PR 正文:图很长、字看不清,
改前/改后会被拆到两行,场景里的测试按钮也出现在截图中。

- publish 只嵌与改动相关的截图:--compare 时只放改前/改后有像素差异的截图
  (改前 | 改后),否则每个场景一张(Light | Dark);有 --focus 时用放大图;
  --case 可指定场景;全量总览只给链接
- 总览里改前/改后成对换行
- 场景里只为测试存在的控件标 data-ui-page-control,截图时隐藏,check 仍可点击
- 同步 PR 模板、desktop-development.md 与单页验证说明

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-06 01:08:23 +13:00
Lizi
d639b2af23 Merge pull request #8621 from makecindy/cindy/keen-dijkstra
fix(desktop): 静态链接 Windows 远程桌面组件运行库
2026-11-03 22:02:43 +08:00
DavidShen
621efc72cb fix(desktop): 静态链接 Windows 远程桌面组件运行库
Statically link the MSVC CRT for Windows remote desktop helpers and addon.
Validate native loading and production NSIS hooks with isolated fixtures.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-03 17:15:21 +08:00
nana
e188cb264d fix(desktop): stabilize Chinese menu text on hover
Pin PingFang fallback weights to their public local faces, verify the real group composer menu, and document isolated component preview acceptance.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: nana <823073145@qq.com>
2026-11-03 10:29:11 +08:00
Lizi
578d3167b1 Merge pull request #6461 from zhaodengfeng/fix/dev-deep-link-registration
fix(desktop): prevent unpackaged builds from claiming deep-link protocols
2026-10-31 01:35:59 +08:00
Zhao Dengfeng
d6a80270f8 Merge main into fix/dev-deep-link-registration
Preserve upstream window-focus coverage alongside the unpackaged protocol-registration regression tests.

Signed-off-by: Zhao Dengfeng <2370187+zhaodengfeng@users.noreply.github.com>
2026-10-31 00:14:19 +08:00
Cindy
185595ba49 fix(desktop): 修复 Hyprland 主窗口收起到托盘
Signed-off-by: Cindy <cindy@Cindys-Mac-mini.local>
2026-10-30 20:35:20 +13:00
yan
f03a2065b1 feat(provider-share): 支持受邀者直连执行电脑与短期授权
由组电脑分配与授权,受邀者直连执行电脑,保留中继回退、原任务位置、历史与图片传递。
按租约和启动代次约束本地能力,归档与删除及时取消准备,隔离迟到结果和未确认清理。
补齐预算与安全索引准入、自建中转切换生命周期,以及跨区身份请求的账号作用域检查。
同步协议、产品规则与真实生产入口回归。

Signed-off-by: yan <yan233@xd.com>
2026-10-29 15:14:27 +08:00
liugaowei
013de623f8 chore(plugins): 合入 main 并解决冲突
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-26 10:11:00 +08:00
fmfsaisai
e17e841054 docs: keep only public screenshot privacy principles
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-24 21:22:16 +08:00
fmfsaisai
ef4537e2f3 docs: require reinjection after full page reloads
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-24 21:19:09 +08:00
fmfsaisai
f906bee0e2 docs: state the manual check boundary for remaining screenshot content
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-24 21:12:28 +08:00
fmfsaisai
0135e1ef92 docs: clarify manual checks for local screenshot attachments
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-24 21:06:21 +08:00
fmfsaisai
e74e8f7f87 fix(dev): blur cached and remote media in screenshot snippet
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-24 20:59:58 +08:00
fmfsaisai
e5909a67b8 docs: add CDP screenshot privacy guide and browser snippet
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-24 20:53:17 +08:00
Dash
93933624fe feat(dev): 桌面与手机共用的免登录 UI 模拟数据(--mock)
- @cindy/maker-shared/ui-mock:两端共用的演示项目与任务(桌面数据库行格式)
- Desktop:restart --mock 使用独立 ui-mock 沙箱,首次免账号进入并补齐模拟任务
- Mobile:sim:start/whoami/rebuild 支持 --mock,visual mock 改用共享数据
- 文档:docs/dev-rules/ui-mock-data.md,并在启动说明与 AGENTS 索引中链接

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-24 14:01:03 +13:00
liugaowei
9a06b7c728 Merge main into feature/plugin-community-contribution
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-23 10:22:42 +08:00
Lizi
97799b083e fix(codex): prefer valid local auth over expired release snapshot
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-10-23 02:02:41 +08:00
liugaowei
60110fa673 feat(plugins): 支持本地插件提审与我的插件管理
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-21 17:48:10 +08:00
Zhao Dengfeng
eb5b9b4cd6 fix(desktop): keep unpackaged builds from claiming deep-link protocols
Signed-off-by: Zhao Dengfeng <2370187+zhaodengfeng@users.noreply.github.com>
2026-10-19 19:43:09 +08:00
Chris
31b49781db feat(desktop): 单页 UI 快速验证 pnpm ui:check
只编译被改的真实 renderer 组件,在隔离 Electron 窗口(与 Cindy 同一 Chromium)里按
场景 × 主题 × 语言 × 尺寸渲染、检查、截图后退出,不加载 main、登录、数据库或 Agent。

- 场景数据:宿主接口默认拒绝并记录缺失、forbid 禁止写入、subscription 推送事件、
  三种模块替换并在报告中列出
- --changed 按分支改动选页面并报告未覆盖文件;--compare 改前/改后成对截图;
  --focus 放大单个元素并实测尺寸;--entry 临时入口;ui:preview 人工预览
- 每次运行生成 pr.md,ui:check:publish 把截图发到作者 fork 的 pr-assets 分支并
  输出带图的「UI 变化」
- 迁移并删除已失效的 check-group-control-layout.mjs 与 verify-device-picker.cjs
- AGENTS.md 与 desktop-development.md 增加触发入口和「按改动选择验证方式」表

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-17 13:32:20 +08:00
Dash
f2f5ba54ed feat(desktop): 为 Linux 添加系统托盘入口 (#6093)
Signed-off-by: Cindy <cindy@Cindys-Mac-mini.local>
Co-authored-by: Cindy <cindy@Cindys-Mac-mini.local>
2026-10-15 19:56:56 +08:00
Dash
a9a1ebc1a2 fix(dev): 新 worktree 装完依赖即可用,开发版启动失败能看到原因 (#5815)
* fix(dev): 新 worktree 装完依赖即可用,开发版启动失败能看到原因

- postinstall 末尾复核 Electron dist,缺失时补装:pnpm side-effects cache
  记下「electron 已构建但无产物」后,同机新 worktree 都会跳过 Electron
  自己的 postinstall
- workspace 测试开跑前只读检查依赖与 Electron,未就绪直接给出处置命令
- macOS 无 TTY 启动时用 script(1) 把 dev 终端输出写入
  apps/desktop/logs/dev-terminal.log,失败时打印日志末尾并在 verdict 带 log=
- USERDATA_IN_USE 给出改用本 worktree 沙箱的 next
- 进程归属按最深 worktree 判定,主 checkout restart 不再误杀
  .cindy-worktrees 下的实例
- 同步环境准备、Desktop 启动与 worktree 会话文档

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(dev): 收紧依赖预检范围,终端日志限长并覆盖所有失败结论

- 依赖预检只在选中 Desktop 时检查 Electron,并把缺失的
  node_modules/electron 判为安装不完整
- 终端日志经命名管道只保留前 8MB,长期运行的 dev 不再让文件无限增长;
  环境变量前缀紧贴 script,cd 失败时整组命令不执行
- ready 后进程退出导致的 WHOAMI_MISMATCH 也打印日志末尾并带 log=
- ensure-deps 测试去掉 CI 继承的 ELECTRON_OVERRIDE_DIST_PATH

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* test(dev): 终端日志命令断言按平台路径拼接

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-12 06:00:50 +08:00
Dash
db0bfc4243 fix(desktop): 减少停帧误报并完善窗口诊断 (#5628)
* fix(desktop): refine render watchdog diagnostics and add Windows comparison

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(ci): initialize render probe paths after runner starts

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(test): preserve reliable render recovery evidence

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(test): capture restored pixels before requesting animation frames

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(test): classify unfocused render probe input as inconclusive

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* chore(desktop): remove automated Windows render comparison workflow

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-12 00:17:05 +08:00
Lizi
425613b4ec fix(claude): 开发实例共用本机 Claude Code 登录
Claude 订阅改由内置 CLI 自己登录后,凭证库按 CLAUDE_CONFIG_DIR 区分。dev 多实例
仍把 CLI 配置目录隔离到 <userData>/claude-home,导致终端里已登录的 Claude Code
在开发实例的供应商页显示「未连接」。正式版从未设置该目录,不受影响。

- dev 与正式版一致:登录、登录态检查、所有来源的本机会话与 Learn Skill 列表都用 CLI
  默认 ~/.claude,不再设置 CLAUDE_CONFIG_DIR。
- 旧 dev 任务续接:启动时后台把 claude-home 的 projects / file-history 一次性补拷到
  默认目录(只补缺不覆盖、不删旧目录、保留 mtime、临时文件 + hard link 落位,不支持
  硬链接时退回 COPYFILE_EXCL 直拷);拉起 CLI 前最多等一次 15s,不阻断启动。转录读取以
  ~/.claude 优先,旧目录只作兜底。
- 启动时序:CLI 二进制未就绪不再进入 30s 读失败退避;二进制就绪后补读一次登录态,
  供应商页随状态广播更新(正式版里已在终端登录 Claude Code 的用户也因此更早被识别)。
- 规则文档写明 dev 的 Claude Code 配置目录不隔离(与 OpenAI 登录态的共享例外同思路)
  及同机共用转录、补拷只做一次的取舍。

Signed-off-by: Lizi <jiali@magiclizi.com>
2026-09-26 14:58:20 +08:00
Chris Zhang
80c3020bb1 fix(test): 本地测试默认独立运行,收窄选测与执行要求 (#5042)
* fix(test): make local test serialization opt-in

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(test): retain checked text inputs and portable Git fixtures

Signed-off-by: zqchris <chrisz83@gmail.com>

---------

Signed-off-by: zqchris <chrisz83@gmail.com>
2026-09-24 22:58:31 +08:00
Lizi
d1a2b323bc feat(diagnostics): add privacy-safe working directory tracing
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-09-17 12:45:14 +08:00
Lizi
553816b98d fix(installer): preflight installation directories before elevation
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-09-17 12:45:13 +08:00
Dash
511400728c fix(desktop): 开发启动按地区选择服务器端点
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-08 22:10:06 +10:00
DavidShenXD
7ac1c4da73 fix(desktop): 修复跨供应商切模型与上下文保护 (#3930)
* fix(desktop): allow verified model window switches

Signed-off-by: david <david@xd.com>

* fix(desktop): explain model switch protection failures

Signed-off-by: david <david@xd.com>

* fix(desktop): 修复跨供应商切模型与上下文保护

Signed-off-by: david <david@xd.com>

* fix(desktop): 保留设置输入框深链能力

Signed-off-by: david <david@xd.com>

* fix(desktop): isolate Release auth snapshots during dev forks

Signed-off-by: david <david@xd.com>

* test(desktop): clean up rebase assertion

Signed-off-by: david <david@xd.com>

* chore(desktop): refresh design inventory after main rebase

Signed-off-by: david <david@xd.com>

---------

Signed-off-by: david <david@xd.com>
2026-09-05 10:43:39 +08:00
MagicLizi
173df24fb6 feat: default desktop restart to stable dev sandbox
Signed-off-by: MagicLizi <jiali@magiclizi.com>
2026-08-26 12:48:12 +08:00