mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 18:37:24 +00:00
* Source Control lists Codex models from app-server model/list instead of debug models The Codex text-action picker read 'codex debug models', a dump of Codex's whole catalog with prompt templates (40-90 KB per model). Once it passed the 4 MiB output cap discovery failed and the picker kept Orca's built-in list, and the dump's hidden entries were selectable. List models with app-server model/list (hidden rows excluded), over Source Control's own launch, lock and teardown, with the same 4 MiB input budget and 60 s deadline. * Bound Codex model discovery input in bytes, key its cache case-insensitively on Windows, and stop the app-server only when it ignores stdin EOF - Count raw bytes from both streams against the 4 MiB budget. - Read CODEX_HOME (and other account dirs) case-insensitively on Windows for the host cache key. - Skip the post-listing kill when the app-server already exited; fail waiting listing requests once discovery settles. - Report an incomplete model list as such. - Tests: fake-timer grace and successor admission after a successful listing, method-not-found and unreadable-page fallbacks. * Key the Codex discovery cache on the env spelling Windows spawn uses Windows env names ignore case and Node's spawn takes the lexicographically first spelling, so CODEX_HOME wins over codex_home; the cache key now picks the same one. * Narrow Codex app-server records with the provider record guard instead of type assertions * Read Source Control action model picks under the repo's host key, as the picker saves them Local repos resolved generation under the 'unknown' host key because their connection id is undefined, so the saved pick was skipped and the agent default ran. * Key Source Control model picks by connection until the repo record loads, and test with a real local repo * Key a native Codex listing's cache on process.env when no agent env was resolved