- Pass caller context into Executor.Execute so cancellation reaches the subprocess immediately - Use Setpgid + SIGKILL on process group to kill grandchild processes - Add context to ToolExecutor signature and thread it through dispatch - Reset agent state to idle after drainAgent - Rollback incomplete session turn on interrupt |
||
|---|---|---|
| .. | ||
| context.go | ||
| loop.go | ||
| session.go | ||
| state.go | ||