* 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>
* 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>
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>
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>
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>
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>
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>
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>
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>
* 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>