feat: improve codex app controls and recovery

This commit is contained in:
shiyue
2026-06-15 13:22:36 +08:00
parent 3a4006b7d3
commit ed3238fa49
8 changed files with 448 additions and 29 deletions

View File

@@ -133,6 +133,10 @@ function createCodexAppServerClient(options = {}) {
sendRaw({ method, params });
}
function reloadMcpServers() {
return request('config/mcpServer/reload', {}, 30000);
}
function start() {
if (initPromise) return initPromise;
exited = false;
@@ -212,6 +216,7 @@ function createCodexAppServerClient(options = {}) {
stop,
request,
notification,
reloadMcpServers,
isRunning,
pid: () => proc?.pid || null,
};