mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-16 18:34:18 +00:00
discoverInstalledCuratedPlugins acquired the shared Codex app-server client to issue a one-shot plugin/list RPC against the source CODEX_HOME. The shared slot kept the spawned child alive with stdio pipes attached to the onboarding process, so the Node event loop never drained after the wizard emitted its outro and the CLI appeared to hang. The discovery RPC has its own one-off startOptions (custom CODEX_HOME, HOME) that should never be reused for an agent session, so request it as an isolated client. request.ts closes the child as soon as the call returns, removing the dependence on process-exit harness disposal and eliminating the post-onboarding hang.