Restore polling as the primary Live architecture

Default Codex back to one-shot foreground polling, delegate generation to the existing low-effort agent, and keep the app-server worker available only through an explicit experimental opt-in. Preserve progressive publication and the shared safety and framework optimizations.

Prepared with Codex assistance under maintainer direction.
This commit is contained in:
Paul Bakaus
2026-07-15 16:16:08 -07:00
parent ead6ddabe5
commit 0ac1ca6867
58 changed files with 424 additions and 361 deletions
+7 -3
View File
@@ -152,9 +152,13 @@ function codexSourceDeltaOutputSchema(phase, requirePlan, expectedVariants) {
export function resolveCodexWorkerConfig({ env = process.env, liveConfig = {} } = {}) {
const configured = liveConfig.experimentalCodexWorker || liveConfig.codexWorker || {};
const envEnabled = parseBoolean(env.IMPECCABLE_LIVE_CODEX_WORKER);
// Activation remains process-local. Codex gets the worker by default, while
// committed project settings can never switch another harness onto Codex.
const enabled = envEnabled == null ? isCodexRuntime(env) : envEnabled;
const configuredEnabled = parseBoolean(configured.enabled);
// The app-server lane is experimental and opt-in. A committed project
// setting can enable it only inside Codex; it can never switch another
// harness onto a Codex-specific runtime path.
const enabled = envEnabled == null
? isCodexRuntime(env) && configuredEnabled === true
: envEnabled;
const profile = nonEmpty(env.IMPECCABLE_LIVE_CODEX_PROFILE)
|| nonEmpty(configured.profile)
|| 'quality';