midway send-text when an agent finishes or needs approval. Choose your agent’s guide:
Use midway send-text --background in hooks so the notification send continues if the agent or hook process is interrupted. The detached process is still subject to system shutdown, explicit termination, and teardown of ephemeral environments.
Before enabling a hook:
- Make sure
midwayis on the hook process’sPATH. - Make sure the hook’s working directory contains
midway.yaml; background sends use the default config in their working directory. - Configure notification destinations in Midway. See configuration and the notification guides.