not_4O4 (X, magpie 0.1.4012, Windows): the ChatGPT app's Work tab
listed GPT alone, in a new window and in a new project on D: too.
The app-server reads model_catalog_json only as it starts. codex-rs
app-server model_catalog.rs reloads only when needs_reload is set,
which happens on an account change alone. The app keeps one
app-server for all its windows, and on Windows it runs from login
(StartupTask). So a list magpie named after the app-server started
never reached the picker. That happens when the list first becomes
known (the backend answering, or the models_cache stand-in from
327da691a) or when Codex moves from WSL to the Windows config.
magpie's restart follows only the route (codexAppRoute), and the list
is kept out of the route on purpose (#4550). On Windows StaleCopies
reports no app copy, so no Restart was offered either.
Now deskList stashes when it names the key (codex.desk_at, Agent.DeskAt,
provider.CodexAppDesk). codexAppDeskStep marks the app's app-servers
that started before that time as stale, once for each naming, and they
are ended at idle like a Connect's, with RestartApp off too. The time
is kept while the key is taken out and named again in one change (a
model picked in magpie, a reset), and dropped once deskList takes the
list out as not wanted. Left alone:
- an app-server whose start can't be read;
- the takeover's, where the reset names the list again as it ends, in
the same look or a later one (c.back) (#4550);
- a new list written into a file already named.
Run:
- Real Windows app-server (OpenAI.Codex 26.1106, codex-cli
0.167.0-alpha.4.1, sandbox CODEX_HOME, cwd D:\cxproj): model/list,
then model_catalog_json written, config/read, model/list on the same
process: still the 12 GPT models. A fresh process listed magpie's.
- win-run: TestCodexDesktopList* in internal/agent ok. A temporary
test started the Store package's codex.exe app-server: codexAppServersOn
listed it, and codexServerStart read its start; the test file was not
committed. TestCodexAppRestartedForTheListNamed ok.
- mote (load 25-33 over 18 cores; mica's disk full):
TestCodexAppRestartedForTheListNamed, TestCodexAppLeftRunning*,
TestCodexAppServer*, TestCodexAppSwitch*, TestCodexAppCrash*,
TestCodexDesktopList* ok. go vet for darwin, windows and linux on
internal/agent and internal/provider: ok.
go test ./internal/agent ./internal/provider: internal/agent ok;
internal/provider red at TestWalletCapHolds only, a midnight
boundary on mote's clock unrelated to this change, filed as #6474.
Broken by hand, each red:
- the desk step marks nothing stale: ended [], want [60];
- no takeover guard: ended [102] at the reset;
- no c.back guard: ended [103] a look after the reset;
- a new time at each naming: TestCodexDesktopListNamedAt red at the
magpie model pick.
Not tried:
- the real ChatGPT app's window on Windows: ending its app-server and
watching the picker list magpie's models. ssh sees no interactive app.
- A key named by a magpie before this one has no time, and nothing is
restarted for it. Restarting then would restart every running Codex
app once at the update, the ones that work too. Such a user quits
the app once.