yetone
791e27ec34
agent: the Codex app's Restart restarts only its app-server, its window stays
...
yoshi037070 (Discord, 10-27): when magpie restarted Codex, a new Codex
window opened. The switch paths (Connect, Disconnect, failover) already end
only the app's own app-server (codexAppStep, proc.End: SIGTERM on macOS,
exit 0 on Windows), and the app starts another and keeps its window. The
Agents row's Restart beside a Codex app left on the old list did not: on
macOS ReopenCodexApp ran osascript "quit" and then `open` on the bundle,
and that open is what brought up a new window.
Now ReopenCodexApp keeps its check (only a bundle the row lists as left on
the old list) and calls provider.RestartCodexApp, which ends each process
whose command line starts with <bundle>/Contents/ and is the app's own
app-server (isCodexAppOwnServer: an app-server, not --listen), waits up to
10s for them to be gone, and errs when none ran. The app, its window and
another program's --listen server are left alone. The confirm says only the
app-server restarts and the window stays; the status says "Codex app-server
restarted" (zh, zh-TW, ja, de). app.js stays under its budget, with no raise (1,310,458 of 1,310,460
after rebasing on 97332140a ): the "asked first" comment went and
appReopen's shrank. The
agent-wiring page says the same.
The model picker: the app's restart recovery doesn't refetch its models
query; it refetches on the next window focus once the list is over 5
minutes old (staleTime), or when the picker is mounted again.
Run (rebased on origin/main, at this commit's tree):
- go test ./internal/agent: ok (280s).
- go test ./internal/provider -run 'Codex|Restart': ok. Before the rebase,
the whole package with -skip TestUnreadLoginsWriteErrorsKeepCredentials
(#3632 crashes the binary) was ok except TestFetchAsksASharedBaseOnce and
its two siblings (#3854 ).
- go test ./internal/gui -run TestCoreScriptBudget: ok.
- GUI: agent-stale-copies in chromium and webkit, 5 languages, 980/440px:
80 pass. i18n-keys: its only red is #3897 ("Runs as"). Before the
rebase codex-app-stale passed too.
- gofmt -l clean; go vet darwin and windows for agent, provider, gui;
linux for agent and provider (gui's linux vet needs wails' cgo here).
- Real app: a clone of ChatGPT.app 26.1021.31345 (APFS clone in a sandbox
HOME, so the bundle is unique to it) run under that HOME. The real
RestartCodexApp ended its app-server 32922 in 3.1s; the same main
process (31894) started app-server 34143, and its one window (2273016)
stayed the only window. The user's own ChatGPT was untouched.
Broken by hand:
- reopenApp back to appQuit + appOpen: TestCodexAppReopen red ("did quit
…, open …").
- isCodexAppServer in place of isCodexAppOwnServer: TestRestartCodexApp…
red (ended [2 3], the --listen one too).
- the bundle prefix dropped: red (ended [2 4], another bundle's).
Not tried: the picker refreshing in a signed-in app (the sandbox app isn't
signed in); Windows has no such Restart (the row's Restart for the Codex
app is macOS only; Windows switches already end codex.exe with exit 0 and
the app keeps its window, 3aead9c62 ).
2026-10-28 00:20:30 +08:00
..
2026-10-27 01:38:45 +08:00
2026-10-27 13:43:28 +08:00
2026-10-25 20:12:48 +08:00
2026-10-27 18:22:29 +08:00
2026-10-27 07:30:16 +08:00
2026-10-27 09:24:43 +08:00
2026-10-25 16:49:29 +08:00
2026-10-25 16:49:29 +08:00
2026-10-16 00:46:28 +08:00
2026-10-16 00:46:28 +08:00
2026-10-08 20:11:05 +08:00
2026-10-12 00:44:47 +08:00
2026-10-10 18:31:31 +08:00
2026-10-20 00:18:51 +08:00
2026-10-15 09:36:26 +08:00
2026-10-11 00:41:09 +08:00
2026-10-26 16:31:14 +08:00
2026-10-25 00:30:31 +08:00
2026-10-25 21:44:56 +08:00
2026-10-25 00:30:31 +08:00
2026-10-26 17:00:46 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-13 04:27:40 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-13 04:27:40 +08:00
2026-10-13 05:48:39 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-11 00:41:09 +08:00
2026-10-13 14:06:24 +08:00
2026-10-13 14:06:24 +08:00
2026-10-20 00:18:51 +08:00
2026-10-20 00:18:51 +08:00
2026-10-25 16:49:29 +08:00
2026-10-25 16:49:29 +08:00
2026-10-14 15:34:16 +08:00
2026-10-14 15:34:16 +08:00
2026-10-19 18:12:45 +08:00
2026-10-21 03:40:26 +08:00
2026-10-21 03:40:26 +08:00
2026-10-14 20:51:01 +08:00
2026-10-24 19:47:12 +08:00
2026-10-15 07:41:30 +08:00
2026-10-21 18:13:59 +08:00
2026-10-11 08:18:27 +08:00
2026-10-19 04:09:16 +08:00
2026-10-21 03:40:26 +08:00
2026-10-11 08:18:27 +08:00
2026-10-10 19:44:26 +08:00
2026-10-12 23:18:32 +08:00
2026-10-15 06:07:43 +08:00
2026-10-15 06:07:43 +08:00
2026-10-08 05:00:55 +08:00
2026-10-08 08:58:21 +08:00
2026-10-20 00:18:51 +08:00
2026-10-13 16:26:10 +08:00
2026-10-11 21:55:31 +08:00
2026-10-14 05:29:56 +08:00
2026-10-22 18:19:00 +08:00
2026-10-23 03:44:55 +08:00
2026-10-17 16:12:14 +08:00
2026-10-22 10:52:04 +08:00
2026-10-23 03:44:55 +08:00
2026-10-27 12:16:33 +08:00
2026-10-11 08:18:27 +08:00
2026-10-26 17:00:46 +08:00
2026-10-26 17:00:46 +08:00
2026-10-14 22:24:11 +08:00
2026-10-14 22:24:11 +08:00
2026-10-11 06:03:05 +08:00
2026-10-14 09:21:18 +08:00
2026-10-14 09:21:18 +08:00
2026-10-11 05:33:23 +08:00
2026-10-14 16:31:08 +08:00
2026-10-11 12:45:31 +08:00
2026-10-12 22:55:22 +08:00
2026-10-19 00:57:10 +08:00
2026-10-09 13:44:50 +08:00
2026-10-27 01:38:45 +08:00
2026-10-11 02:34:30 +08:00
2026-10-11 20:09:15 +08:00
2026-10-13 12:11:23 +08:00
2026-10-27 16:33:29 +08:00
2026-10-27 18:22:29 +08:00
2026-10-28 00:20:30 +08:00
2026-10-28 00:20:30 +08:00
2026-10-24 22:02:49 +08:00
2026-10-24 22:02:49 +08:00
2026-10-14 18:44:45 +08:00
2026-10-22 20:14:54 +08:00
2026-10-10 09:07:44 +08:00
2026-10-11 04:10:30 +08:00
2026-10-16 00:16:43 +08:00
2026-10-12 23:16:54 +08:00
2026-10-16 00:26:29 +08:00
2026-10-11 02:34:30 +08:00
2026-10-26 11:48:48 +08:00
2026-10-26 11:48:48 +08:00
2026-10-15 23:08:01 +08:00
2026-10-27 18:38:27 +08:00
2026-10-12 23:18:32 +08:00
2026-10-15 00:53:58 +08:00
2026-10-09 14:10:13 +08:00
2026-10-20 00:18:51 +08:00
2026-10-27 17:02:55 +08:00
2026-10-09 13:50:53 +08:00
2026-10-27 23:30:37 +08:00
2026-10-10 22:36:28 +08:00
2026-10-15 23:08:04 +08:00
2026-10-21 03:05:24 +08:00
2026-10-15 08:03:20 +08:00
2026-10-08 17:06:48 +08:00
2026-10-17 05:35:45 +08:00
2026-10-17 05:35:45 +08:00
2026-10-20 20:23:55 +08:00
2026-10-24 23:40:44 +08:00
2026-10-26 15:35:12 +08:00
2026-10-25 01:49:13 +08:00
2026-10-13 14:35:08 +08:00
2026-10-13 16:34:23 +08:00
2026-10-26 22:02:03 +08:00
2026-10-24 02:58:50 +08:00
2026-10-26 22:38:57 +08:00
2026-10-24 17:38:50 +08:00
2026-10-27 23:30:37 +08:00
2026-10-15 23:08:04 +08:00
2026-10-14 05:43:48 +08:00
2026-10-14 20:01:06 +08:00
2026-10-13 05:48:39 +08:00
2026-10-27 18:38:27 +08:00
2026-10-08 18:12:10 +08:00
2026-10-14 15:23:05 +08:00
2026-10-16 05:10:43 +08:00
2026-10-16 05:10:43 +08:00
2026-10-16 05:10:43 +08:00
2026-10-10 17:52:30 +08:00
2026-10-10 17:52:30 +08:00
2026-10-10 17:52:30 +08:00
2026-10-13 14:06:24 +08:00
2026-10-15 03:34:59 +08:00
2026-10-15 23:08:02 +08:00
2026-10-15 23:08:01 +08:00
2026-10-15 23:08:02 +08:00
2026-10-27 15:17:26 +08:00
2026-10-13 10:57:32 +08:00
2026-10-11 02:34:30 +08:00
2026-10-10 19:17:53 +08:00
2026-10-19 18:12:45 +08:00
2026-10-11 15:32:45 +08:00
2026-10-11 02:34:30 +08:00
2026-10-23 01:20:37 +08:00
2026-10-17 00:39:36 +08:00
2026-10-14 05:27:14 +08:00
2026-10-15 23:56:05 +08:00
2026-10-17 18:51:53 +08:00
2026-10-14 15:30:43 +08:00
2026-10-09 22:26:00 +08:00
2026-10-24 23:27:25 +08:00
2026-10-23 22:26:33 +08:00
2026-10-11 04:52:26 +08:00
2026-10-20 20:32:05 +08:00
2026-10-23 22:26:33 +08:00
2026-10-12 22:08:57 +08:00
2026-10-12 22:08:57 +08:00
2026-10-23 02:17:01 +08:00
2026-10-27 23:52:55 +08:00
2026-10-13 10:57:32 +08:00
2026-10-13 14:06:24 +08:00
2026-10-11 22:04:46 +08:00
2026-10-14 09:21:18 +08:00
2026-10-14 09:21:18 +08:00
2026-10-27 11:03:41 +08:00
2026-10-25 12:42:20 +08:00
2026-10-07 03:00:47 +08:00
2026-10-13 14:06:24 +08:00
2026-10-27 18:15:16 +08:00
2026-10-14 09:21:18 +08:00
2026-10-14 09:21:18 +08:00
2026-10-21 04:16:24 +08:00
2026-10-17 23:11:01 +08:00
2026-10-27 23:52:55 +08:00
2026-10-13 05:09:18 +08:00
2026-10-13 05:09:18 +08:00
2026-10-07 00:17:38 +08:00
2026-10-12 00:44:47 +08:00
2026-10-28 00:17:40 +08:00
2026-10-28 00:17:40 +08:00
2026-10-14 18:21:44 +08:00
2026-10-20 00:18:51 +08:00
2026-10-27 18:15:16 +08:00
2026-10-16 05:10:43 +08:00
2026-10-27 01:38:45 +08:00
2026-10-20 00:18:51 +08:00
2026-10-12 00:22:49 +08:00
2026-10-21 04:16:26 +08:00
2026-10-12 00:44:47 +08:00
2026-10-13 14:06:24 +08:00
2026-10-09 14:08:07 +08:00
2026-10-15 23:08:02 +08:00
2026-10-15 23:08:02 +08:00
2026-10-09 12:51:30 +08:00
2026-10-14 09:21:18 +08:00
2026-10-14 09:21:18 +08:00
2026-10-26 16:31:14 +08:00
2026-10-26 16:31:14 +08:00
2026-10-15 23:08:02 +08:00
2026-10-12 00:44:47 +08:00
2026-10-27 11:03:41 +08:00
2026-10-25 14:13:38 +08:00
2026-10-25 14:13:38 +08:00
2026-10-25 00:30:31 +08:00
2026-10-09 14:08:07 +08:00
2026-10-11 20:09:15 +08:00
2026-10-07 03:34:05 +08:00
2026-10-13 14:06:24 +08:00
2026-10-15 23:08:03 +08:00
2026-10-15 23:08:03 +08:00
2026-10-11 02:34:30 +08:00
2026-10-12 19:52:37 +08:00
2026-10-12 23:18:32 +08:00
2026-10-27 11:03:41 +08:00
2026-10-27 11:03:41 +08:00
2026-10-11 02:34:30 +08:00
2026-10-11 02:34:30 +08:00
2026-10-14 05:22:47 +08:00
2026-10-20 00:18:51 +08:00
2026-10-14 18:17:38 +08:00
2026-10-08 19:22:14 +08:00
2026-10-11 00:28:27 +08:00
2026-10-13 13:03:26 +08:00
2026-10-13 13:03:26 +08:00
2026-10-14 09:21:18 +08:00
2026-10-07 07:08:16 +08:00
2026-10-15 08:33:54 +08:00
2026-10-15 23:08:04 +08:00
2026-10-15 23:08:04 +08:00
2026-10-15 23:08:04 +08:00
2026-10-16 11:43:51 +08:00
2026-10-16 11:43:51 +08:00
2026-10-14 15:23:05 +08:00
2026-10-12 23:56:20 +08:00
2026-10-27 15:17:26 +08:00
2026-10-27 01:38:45 +08:00
2026-10-27 15:17:26 +08:00
2026-10-20 00:18:51 +08:00
2026-10-08 07:31:15 +08:00
2026-10-14 15:30:43 +08:00
2026-10-14 13:33:28 +08:00
2026-10-13 16:57:58 +08:00
2026-10-25 03:39:50 +08:00
2026-10-15 23:08:05 +08:00
2026-10-27 10:01:46 +08:00
2026-10-27 10:01:46 +08:00
2026-10-13 10:55:45 +08:00
2026-10-10 18:39:47 +08:00
2026-10-27 10:01:46 +08:00
2026-10-15 23:08:04 +08:00
2026-10-11 05:43:45 +08:00
2026-10-11 03:11:33 +08:00
2026-10-15 08:33:54 +08:00
2026-10-13 18:26:03 +08:00
2026-10-14 09:21:18 +08:00
2026-10-14 18:21:44 +08:00
2026-10-13 14:06:23 +08:00
2026-10-16 20:08:01 +08:00
2026-10-15 23:08:02 +08:00
2026-10-15 23:08:02 +08:00
2026-10-18 07:13:11 +08:00
2026-10-25 12:42:20 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-12 23:56:20 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-07 07:08:16 +08:00
2026-10-06 16:14:35 +08:00
2026-10-16 20:08:01 +08:00
2026-10-27 18:22:29 +08:00
2026-10-27 18:22:29 +08:00
2026-10-12 22:55:22 +08:00
2026-10-20 00:18:51 +08:00
2026-10-20 00:18:51 +08:00
2026-10-11 00:41:09 +08:00
2026-10-14 22:24:11 +08:00
2026-10-27 22:56:58 +08:00
2026-10-20 20:23:51 +08:00
2026-10-20 20:23:51 +08:00
2026-10-20 20:23:51 +08:00
2026-10-14 13:33:28 +08:00
2026-10-14 13:33:28 +08:00
2026-10-11 01:13:52 +08:00
2026-10-13 05:48:39 +08:00
2026-10-11 15:56:06 +08:00
2026-10-13 14:06:24 +08:00
2026-10-15 23:08:04 +08:00
2026-10-13 10:57:32 +08:00
2026-10-13 09:38:25 +08:00
2026-10-15 09:36:26 +08:00
2026-10-15 09:36:26 +08:00
2026-10-14 13:33:28 +08:00
2026-10-14 13:33:28 +08:00
2026-10-13 05:48:39 +08:00
2026-10-08 02:15:01 +08:00
2026-10-27 01:38:45 +08:00
2026-10-27 17:26:30 +08:00
2026-10-25 00:43:36 +08:00
2026-10-14 05:28:39 +08:00
2026-10-15 07:41:30 +08:00
2026-10-15 23:08:04 +08:00
2026-10-10 15:05:53 +08:00
2026-10-11 08:18:27 +08:00
2026-10-21 18:43:06 +08:00
2026-10-13 17:02:05 +08:00
2026-10-08 11:52:20 +08:00
2026-10-23 01:58:00 +08:00
2026-10-23 01:58:00 +08:00
2026-10-19 21:55:33 +08:00
2026-10-15 14:52:51 +08:00
2026-10-15 14:52:51 +08:00
2026-10-25 21:44:56 +08:00
2026-10-11 05:33:23 +08:00
2026-10-11 05:33:23 +08:00
2026-10-27 09:24:43 +08:00
2026-10-13 09:56:06 +08:00
2026-10-27 23:52:55 +08:00
2026-10-11 04:00:27 +08:00
2026-10-27 01:38:45 +08:00
2026-10-25 12:42:20 +08:00
2026-10-08 09:54:11 +08:00
2026-10-11 06:41:06 +08:00
2026-10-08 16:57:39 +08:00
2026-10-11 01:21:21 +08:00
2026-10-15 23:08:01 +08:00
2026-10-08 07:31:15 +08:00
2026-10-27 23:52:55 +08:00
2026-10-22 04:32:46 +08:00
2026-10-20 00:45:12 +08:00
2026-10-22 04:32:46 +08:00
2026-10-07 03:00:47 +08:00
2026-10-12 23:56:20 +08:00
2026-10-12 00:44:47 +08:00
2026-10-13 05:48:39 +08:00
2026-10-11 02:34:30 +08:00
2026-10-21 18:43:06 +08:00
2026-10-21 18:43:06 +08:00