tuiCalls.call made Claude Code's MCP call with httptest.NewRequest, whose
context is never done, so a call a test didn't answer waited in mcpCall
until the package ended. macOS CI's 30m alarm at e787e7b5c (run
43102520567) showed one such goroutine blocked 24 minutes in mcpCall from
claude_tui_call_test.go:76. The request now carries a context the test's
cleanup cancels, and the cleanup waits for the call to return.
Run (mote, at origin/main 152734cd1 plus this change): a throwaway probe
test, run after the TUI tests, counting (*tuiCalls).call goroutines still
alive: old helper "1 tuiCalls calls still running after their tests",
fixed helper ok. go test -race -count=5 -run TestClaudeTUI ./internal/gateway
ok (240s); that pattern covers every user of newTUICalls and schemaTUI.
Not the cause of that run's timeout: the package took 1801s where the
last green macOS run took 888s, with the alarm landing on a 5s-old
ZCode test (#2191).