reload_product
Re-read the ACTIVE product from disk, discarding any unsaved in-memory changes. The in-band escape from a wedged save-conflict: when the active product was edited in another session, flush()/switch_product keep throwing CONFLICT and the stale snapshot persists; this clears it WITHOUT restarting the server. When there are unsaved changes you must pass `discard_local: true` to proceed (the reload would drop them); with no unsaved changes it is a safe refresh. Local-only.
Workspace & Portfoliosnon-atomic. Stops the watcher, re-reads the file, re-arms the watcher.
Arguments
discard_localbooleanoptionalDiscard unsaved in-memory changes and re-read from disk. Required (true) when the active product has unsaved changes; ignored when it is clean. Default false.
Returns
Shape
{ message, file, product: { title, stage }, entities, discarded_local_changes }