Chapter 7: Interrupt/Resume (human-in-the-loop)
Goal of this chapter: understand Interrupt/Resume and implement an approval flow so users can confirm before sensitive tool operations.
Code location
- Entry code: cmd/ch07/main.go
Full tutorial
What you learn
- How to pause an execution at a safe boundary and request user input.
- How to resume from checkpoints to support long-running or approval-gated tasks.