[codex] Remove Codex SDK canary runtime (#220)

* Revert "fix: drain sdk follow-up turns (#219)"

This reverts commit 807828e0ce.

* Revert "feat: feature-flag Codex SDK runner (#218)"

This reverts commit 879d16235f.
This commit is contained in:
Eyejoker
2026-06-03 19:10:53 +08:00
committed by GitHub
parent 807828e0ce
commit f1679ac686
15 changed files with 22 additions and 1073 deletions

View File

@@ -37,7 +37,6 @@ export interface GroupState {
pendingTasks: QueuedTask[];
process: ChildProcess | null;
processName: string | null;
drainFollowUpsAfterRun: boolean;
ipcDir: string | null;
retryCount: number;
retryTimer: ReturnType<typeof setTimeout> | null;
@@ -61,7 +60,6 @@ export function createGroupState(): GroupState {
pendingTasks: [],
process: null,
processName: null,
drainFollowUpsAfterRun: false,
ipcDir: null,
retryCount: 0,
retryTimer: null,
@@ -147,7 +145,6 @@ export function resetRunState(state: GroupState, groupJid: string): void {
state.startedAt = null;
state.process = null;
state.processName = null;
state.drainFollowUpsAfterRun = false;
state.ipcDir = null;
state.directTerminalDeliveries.clear();
transitionRunPhase(state, groupJid, 'idle');
@@ -163,8 +160,7 @@ export function assertRunPhaseInvariants(
state.currentRunId != null ||
state.runningTaskId != null ||
state.process != null ||
state.processName != null ||
state.drainFollowUpsAfterRun
state.processName != null
) {
logger.error(
{
@@ -174,7 +170,6 @@ export function assertRunPhaseInvariants(
runningTaskId: state.runningTaskId,
hasProcess: state.process != null,
processName: state.processName,
drainFollowUpsAfterRun: state.drainFollowUpsAfterRun,
},
'Invariant violation: idle phase has stale run/task ID or process',
);