bypass.Submit now takes a context and returns early when cancelled. This allows the stop command to properly cancel pending bypass requests that haven't been approved or denied yet. The full context chain is now: 1. stop command -> Interrupt -> cancel actCtx 2. actCtx cancellation -> closes CallTool fid 3. toolsrv proc/new sees closed fid -> propagates ctx cancellation 4. ExecuteTool -> executeBypassDirect -> bypass.Submit 5. bypass.Submit returns ctx.Err() when context is cancelled |
||
|---|---|---|
| .. | ||
| exec.go | ||