mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-16 08:06:24 +03:00
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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user