Start work without waiting
The long-running commandssite-create, say, build-site, and convert-theme accept --no-wait.
ok, status: "streaming", siteId, conversationId, and suggested next actions. It requires a Miles service that supports cancellation.
Use --no-wait when the agent needs to poll or keep its own progress interface active. Otherwise, the command streams progress and waits by default.
miles wait-job
If the timeout expires, the result remains
status: "running". Run wait-job again or cancel the work.
miles cancel
wait-job result will report outcome: "aborted". Cancel when the user changes their mind; do not silently cancel useful work or start a replacement build before the first run has settled.
Protected changes
approvalRequired is present, the protected work has not happened. Tell the user what Miles wants to do and wait for an explicit answer to that specific change. Only then call approval-respond.
Do not use say, --yes, --force, or a generic “continue” to answer an approval. A declined approval ends that branch of work.
miles undo
ok, kind, snapshotVersion, truncatedMessages, and browserRefreshRequired.
Undo is one level only and has no redo. Check site-state for undoAvailable first. For a broad experiment, use site-attach --duplicate before the change instead.
Next: WordPress and browser connection.