mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-07-07 15:12:18 +08:00
`htmlPath: ''` already makes WindowManager skip content loading so a domain service can load the window itself, but the behavior was implicit — undocumented at the type level and untested as a contract. - types.ts: document that `htmlPath: ''` is a consumer-loaded window and how the consumer loads content afterward (getWindow(id) -> webContents.loadURL/loadFile, plus show/close ownership); fix the preload cross-reference that wrongly claimed htmlPath is three-state. - WindowManager.test.ts: lock the contract — empty htmlPath skips loadFile/loadURL, non-empty htmlPath loads on create. - usage guide: add a "Consumer-loaded windows" section (recipe + getWindow caveat).