Commit Graph
1 Commits
Author SHA1 Message Date
wizzy-yang f9f1df2e1a provider, agent, gui: saving a routing group no longer waits on a Codex usage read, and the saved row comes back into view (#1093)
Saving a group ran agent.SyncCatalog, and Codex's Sync asked whether the
signed-in ChatGPT account is used up through LoginUsage, which reads the
vendor when its one-minute cache is stale and makes the caller wait
(922-1148ms in the reporter's 17 saves, 9-20ms on a cached read).
provider.CodexUsedUpKnown() answers from what was already read and never
asks; the sync uses it. KeepOnAnAccountWithRoom still reads it every
loginSwitchEvery and touches the catalog when the answer changes, so the
sync learns of it without asking itself.

The group editor stands in for the row, so on Save the page got shorter
and the browser clamped the view to the list's foot. routing.js now
brings the saved row back with readerScrolls + scrollIntoView, and only
when it is out of view, so a click hold isn't released for nothing.

Squashed from #1093 by wizzy-yang onto current main.
2026-10-13 16:34:23 +08:00