Files
CherryHQ-cherry-studio/docs/references
fullex 1c1278aefc docs(window-manager): document the empty-htmlPath consumer-loaded contract
`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).
2026-07-06 06:40:47 -07:00
..