84 Commits

Author SHA1 Message Date
Dash
205ad0a9b4 Merge main into Host M1 integration for account model discovery
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-14 04:44:10 +13:00
Lizi
7ea2ba6cce Merge pull request #9331 from Yuewei-LL/fix/windows-deep-link-handoff
fix(desktop): 修复 Windows 提权实例的通用深链跳转
2026-11-13 21:26:58 +08:00
Dash
6a48285974 feat(host): run Claude, Codex and Pi tasks on the Node Host as the desktop does
The Node Host builds its Claude, Codex and Pi engines from the same
modules as the desktop, with its own ports: model context and efforts,
disabled and managed Skills, the plugin roster and capability routing,
engine model lists, turn change sets and git savepoints, worktree
runtime leases, the loopback compatibility proxy and subscription
bridges, Codex native login reconciliation and invalidation, Pi native
providers and packages, the Pi persistent subagent runner, auto-review
and the auxiliary model chain, the vision bridge, the /learn capture,
and the event and tool input redaction before events leave the Host.

Parity tests run the desktop and Host code on the same inputs; Host
end-to-end scripts run the bundled engines against a local mock
upstream with an isolated HOME.
docs/host/personal-migration-release-table.md records, item by item,
what is aligned, the known differences and what remains before the
personal edition can move to the Host.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 22:44:27 +13:00
Dash
a11bbec7ef Merge remote-tracking branch 'origin/main' into cindy/pensive-mendel
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-12 14:02:12 +13:00
kirozeng
f3e9175899 fix(desktop): 动效按规范审核裁决落地(面板宽度 base 档、循环指示器登记)
落实 2026-11-11 设计规范审核维护者裁决的「动效」一组:

- D-04(A):左右侧栏、标题栏让位与浮动按钮簇、文件浏览聊天栏的宽度动画
  从写死 250ms 改为 --motion-base / --motion-ease-move;Toast 列表重排从
  300ms ease-out 改为同一组 token;新增守卫禁止 renderer 写死时长与曲线,
  存量登记为只减不增的基线。
- D-05(C):语音整理中转圈改用 --motion-spinner-cycle(0.9s → 1s),
  与麦克风波形一起登记为 SVG 循环例外。
- D-06(C):Thinking 三点与 GhostTool 扫光登记为循环例外;插件页未读
  呼吸点改为静态点;删除无人使用的 session-card-prog、
  session-running-dot-wave 残留样式。
- D-07(A):Agent Island 吉祥物预览登记为品牌例外,代码不动。
- D-11(B):壁纸视频淡入淡出从 base 改为与预览图相同的 fast 档;
  下载进度条 linear 登记为窄例外。
- D-16(A):菜单栏面板任务图标扩散环与呼吸点补登记,代码不动。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: kirozeng <kirozeng@gmail.com>
2026-11-12 00:21:08 +08:00
Dash
6d88eb1701 Merge remote-tracking branch 'origin/main' into cindy/pensive-mendel
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Assisted-by: Cindy (https://cindy.app)

# Conflicts:
#	docs/dev-rules/protocol-compatibility.md
#	docs/product-rules/agent-user-parity.md
2026-11-12 01:08:32 +13:00
DavidShenXD
ad9d36702f fix(desktop): 保持菜单栏图标位置并支持桌面目标操作 (#9919)
* fix(desktop): preserve menu bar placement and support desktop pointer targets

Embed a stable AppKit preference identity in native menu bar helpers,
with isolated development profile identities and metadata-aware caching.
Expose explicit capture-bound desktop click and drag through Computer Use
while preserving window targeting, input serialization and user protection.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: David <david@DaviddeMacBook-Air.local>

* fix(desktop): invalidate desktop captures after local input

Record the start of each desktop capture and verify system idle time before
queueing and dispatch. Reject local HID input after capture even once the
user is no longer active, including input during capture and unknown timing.

Add production-dispatch regression coverage for stale click and drag,
slow captures, and unknown idle state.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: David <david@DaviddeMacBook-Air.local>

* fix(desktop): clean up generated desktop captures

Release host-owned desktop screenshots on replacement, failure, cancellation and session cleanup while preserving explicit exports and concurrent reads.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: David <david@DaviddeMacBook-Air.local>

---------

Signed-off-by: David <david@DaviddeMacBook-Air.local>
Co-authored-by: David <david@DaviddeMacBook-Air.local>
2026-11-11 20:02:51 +08:00
Yuewei-LL
266bcb94b9 fix(desktop): scope Windows link handoff to client recovery
Restore updater production behavior and its documentation to main so the
browser-to-elevated-client fix ships independently of updater changes.
Keep permission setup in an explicit integration-only fixture and retain
bounded real Node/Electron delivery assertions and sender diagnostics.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Yuewei-LL <308228674+Yuewei-LL@users.noreply.github.com>
2026-11-11 19:15:44 +08:00
Yuewei-LL
9eb3c1ef13 Merge main and make Windows updater relaunch synchronous
Preserve the upstream Dwm and deep-link native/startup changes while
integrating main. Create the updated app with the verified same-user,
same-session ordinary desktop shell as parent, retaining the original
detached fallback only before a child has been created.

Keep the created process handle for Windows launch verification, prevent
overwrite rollback while a child may still be active, and serialize Close
and Retry while Close runs off the UI thread. Add real Windows launch and
isolated installer transaction regression coverage.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Yuewei-LL <308228674+Yuewei-LL@users.noreply.github.com>
2026-11-11 16:17:12 +08:00
Lizi
7d740afa0a Merge pull request #9727 from makecindy/cindy/amazing-lamarr
fix(interaction): 回答异步问题后不再出用户气泡
2026-11-11 03:58:57 +08:00
Lizi
01c41cc4c7 merge: integrate current main for Agent-Net delivery
Resolve desktop and Node Host module extraction, preserve scheduler provider-group bootstrapping and both notification lifecycles, and register encrypted-only settings in search.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-11-10 22:53:46 +08:00
Lizi
ed48ee70a3 feat(agent-net): complete relay sharing and account isolation
Include relay sharing dialogs, global approvals, same-account discovery and joins, V2 tenant isolation, and guest sharing recovery and error fixes. Verify Agent-Net remains disabled by default for new installations and upgrades without an explicit preference.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-11-10 22:48:58 +08:00
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
fa611e2118 fix(interaction): keep answered question replies out of pending bubbles
Filter card-owned answers from desktop and mobile pending rendering, including settling and outbox states. Keep delivery intact and retain normal messages and withdrawn-question supplements.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 01:22:07 +13:00
Dash
2520c47e00 feat(github): trigger automations from selected repository events
Use the existing durable scheduler queue for GitHub App events, preserve busy PR follow wakeups, separate GitHub recovery from ordinary webhooks, and bind new connections to the initiating Desktop. Remove implicit personal-build loopback endpoints.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 00:46:23 +13:00
Dash
654458c66d chore(repo): sync main for GitHub App event work
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 00:35:13 +13: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
Dash
5212556ef0 fix(github): load local event endpoints in personal builds
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-09 23:44:04 +13:00
Dash
3be781047b Merge remote-tracking branch 'origin/main' into cindy/pensive-mendel
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

# Conflicts:
#	apps/desktop/src/main/__tests__/githubSetupIpc.test.ts
#	apps/desktop/src/main/git-context/githubSetupIpc.ts
#	apps/desktop/src/renderer/vite-env.d.ts
2026-11-09 23:34:43 +13: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
Dash
b6af167b33 Merge origin/main into cindy/pensive-mendel
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-08 21:09:49 +13:00
Dash
814f150336 feat(github): refresh followed PRs from GitHub App events
Connect repository events through the existing authenticated webhook channel and wake existing PR follow-up gates after refreshing current facts. Add account controls and a loopback-only development endpoint override.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-08 21:07:40 +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
Yuewei-LL
5beb47e013 fix(desktop): restore Windows deep links into elevated instances
Hand off browser launches through a bounded, same-user native channel and
reuse the existing deep-link routing with per-launch deduplication.
Launch Cindy through the verified unelevated desktop shell after updates,
retaining the existing detached-launch fallback.

Add real Electron cross-privilege and pipe-ownership regression coverage.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Yuewei-LL <308228674+Yuewei-LL@users.noreply.github.com>
2026-11-08 09:55:37 +08: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