Opening DeepSeek's editor and pressing Save without changing anything hung
for seconds (witt-bit, still on v0.1.1246). Save stored providers.json
whatever it held, and every store calls catalog.Touched, which runs
agent.SyncCatalog: every set-up agent's config built and written again
(Claude Code, Codex, Pi, dsh, Hermes, Grok, ZCode and the rest), synchronously
in the save request. Goroutine dumps every ~100ms during a save in a sandbox
HOME with the owner's providers and agents' configs (no credentials) showed
the save handler runnable in SyncCatalog the whole time, not waiting on
network or a lock. Save now compares what it would store with what is
stored and, when they are the same bytes, writes nothing and tells no agent.
A save that changes something still does both.
Measured in that sandbox (magpie web, Playwright clicking DeepSeek > Save):
before 1616, 5407, 1843 ms for POST /api/provider/save; after 212, 132, 145,
147 ms, and providers.json's md5 the same before and after.
Tests: TestSaveUnchangedTellsNoAgent (new) fails on the old Save ("an
unchanged save told the agents 1 times; want none") and passes now.
Full suite: SUITE_LINE