Skip to main content

Module spawn

Module spawn 

Source
Expand description

viewer spawn — start the objectiveai-viewer Tauri shell in the background.

The viewer is per-state: its lock lives at <dir>/state/<state>/locks key viewer, and the lock contents are the server’s client-connect URL. If the lock is already held the viewer is already up and its published URL is returned as-is.

Modules§

request_schema
response_schema

Functions§

execute
spawn
The spawn flow itself, callable in-process (used by Context::viewer_client() as well as the viewer spawn command). Idempotent and cheap when the viewer is already up: a try_read of the lock returns the published URL without spawning.