The market's one client gave every request 20 seconds, and the Registry's
search answers in 13-37 s often enough (9 of the reporter's 33 tries past
13 s, 6 past 20 s, the slowest 37.3 s) that a search came back empty with
"context deadline exceeded" - twice in ten tries, nothing listed, and
nothing to do but type the same box again. The registry is asked with a
60 s client now, past its measured tail; skills.sh and the icons keep
the short one. The error that remains says what it is (SearchError, the
source named, #1589), the client's own seq guard keeps a slow answer
from overwriting a newer keyword's results, and what the market has of
its own still lists beside the failure.
Red before, on the baseline code with the shared client's timeout stood
in at a scale a test can wait for (the probe: list=0, "context deadline
exceeded (Client.Timeout exceeded while awaiting headers)" - the
reporter's error verbatim); after, the same slow registry answers and
the search lists freecad-mcp. A registry past even its own budget still
fails as a named SearchError (control).
Ported from skygunner's branch fix/mcp-registry-timeout (11d176bd7),
author kept; reported by shupivot.
Run at this head (a7072926d plus this commit): go test ./internal/library
-count=1 ok (181 s), gofmt -l clean, GOOS=linux and GOOS=windows go vet
-tags nogui ./internal/library ok. Broken by hand: fetchRegistry put back
on the shared client, both TestRegistry tests red ("context deadline
exceeded (Client.Timeout exceeded while awaiting headers)"), green again
with the fix. Real registry: three searches for freecad answered 200 in
0.8-1.3 s today, so the reporter's 13-37 s tail wasn't reproduced live;
the fake registry's delay stands in for it. Not tried: the GUI against a
slow registry (client.js's api() sets no timeout of its own).