mirror of
https://github.com/linshenkx/prompt-optimizer.git
synced 2026-11-16 06:17:00 +08:00
Keep own undefined object fields through IPC payload cloning so partial updates can distinguish clearing a field from leaving it unchanged. Reuse the shared serializer in the Electron main process as well as renderer proxies, retaining the existing JSON conversions for other values. Stop model edit and connection-test flows from restoring a cleared API key. Cover category moves and backup round-trips, favorite optional fields, custom request headers, image parameter resets, and context update semantics through the real preload and main handlers with simulated IPC transport. Run category and model-form regressions on both web and desktop paths. Follow up PR #371 while preserving its original contribution as a separate commit.