Repository navigation
v0.16.1
Every canned wire peer in the test suite is now one scripted, single-threaded pump, the two blocking entry points nothing called are gone from the provider and credit APIs, the fallback model catalogs are current again, and CI builds against boba v0.11.3.
The suite runs on one scripted pump
Tests that need a fake server no longer carry their own loopback bind, worker thread, blocking drain and canned reply. tests/net_server.[ch] is one pump: a script of rounds (one per completed request, the last repeating), serviced between every client step by a single poll of the client's fd and the server's fds (nm_ts_wait). A round's action names its timing shape instead of sleeping for it — DROP closes the connection slot before the client's next step, DIE closes the listener so the refused redial is identical on every stack, and chunk_events paces an SSE reply one event per pass where a thread used to usleep (d9c263f). No thread, no timer, no atomics anywhere.
Every family moved onto it: keepalive and web_search first (d9c263f), then credit and the wire recorder (e330e4d), provider's two seams (c1b3083), openai_client's one-round and bespoke families (a1dce56, 50cf315), agent (f72782b), chat_app with its held peers (edb8a4b), and the last of provider's request helpers (ec49679). The range deletes about 1,800 lines more than it adds, almost all of it duplicated harness.
The payoff is determinism you can measure. web_search's deadline tests move the fake clock's budget instead of sleeping it: 1.4 s down to 0.03 s, same verdicts (d9c263f). Paced rounds give the step-traffic tests their separate reads without a 150 ms usleep (50cf315). Where a test still needs a parked socket, the round holds it and arms the reply on request, so the parked GET is in place before the turn dials (70b4a69). Two leftovers from the mechanical conversion — a drive through a freed agent handle and a teardown that still closed the old server's fd — surfaced only under CI's default ASan build and are fixed (500a953).
The loopback bind every canned listener had copied is one helper, test_bind_loopback(backlog, port), with the backlog an explicit argument because it is a platform truth: Linux rounds it up, macOS and BSD silently drop the extra SYN, Windows refuses it. The harnesses that genuinely need a thread — the TLS handshake peer and the wire body server — keep theirs by design and just share the bind (694310d). CONTRIBUTING now records that a send into an unaccepted connection is a platform race, not a Linux bug (2326a40).
The connect walk's own test no longer trusts the resolver's order. Binding "whatever localhost resolves to last" and connecting by name is only deterministic if the resolver answers the same way twice, and a macOS CI VM answered differently to the helper and to the walk — so the first dial hit the listener and no address was ever abandoned. The retry case now seeds the address cache, the walk's one input, with the two dials it wants: an IPv6 loopback attempt that nothing answers, then the bound IPv4 one (94ab7d8). The localhost walk helper keeps treating an answer whose first and last addresses are identical as "nothing to walk", the same verdict as a single-address answer (42274b1).
Dead blocking entry points leave the API
NmProvider.chat and its shared implementation nm_openaicompat_chat are gone: the agent drives chat_begin + chat_step directly and the models subcommand drives the catalog slots, so nothing in src/ made a blocking chat request any more. Chat on the vtable is event-driven only, and the mis-wired-descriptor branch the blocking path carried went with it; openai_client's endpoint-level one-shot stays, because that module owns it (78b127f). nm_credits_refresh_sync is gone the same way — the async fetch seam is the API and the suite drives it — and with it credit.c's only use of the select/Sleep platform block (d8aa55b).
Catalogs refreshed
The shipped fallback tables were regenerated from the providers' own documents: openrouter gains gemini-4-neon for 388 models, while the opencode tables shrink to 31 (go) and 84 (zen) as glm-5, glm-5.1 and glm-5.2 are withdrawn and gemini-4-neon and tidepool-alpha-free appear (e3d0ce6). The two vision-gating tests used opencode:go's glm-5.2 as their shipped text-only id, so they moved to glm-5.3, which is the same shape in the new table — vision 0 — and the regression they guard still fires (1b3f7e5). make catalogs-check is clean.
CI builds against boba v0.11.3
The boba pin moves to v0.11.3, which inserts a bracketed paste in one edit instead of one per cluster; that is the quadratic insert behind a long pasted prompt hanging the UI, and it is the same textinput the prompt uses. The API and configure's probe are unchanged (689c8e7).