fix(server): wait for native Codex start before Stop #10024
t3code/codex-turn-mapping fromrefs/pull/10024/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XXL
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
- apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts line 5304OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -5282,3 +5298,7 @@52825298 yield* Effect.gen(function* () {52835299 for (const target of interruptTargets) {52845300 const context = target.context;5301+ // A null start timestamp acknowledges a queued turn; Codex cannot interrupt it5302+ // until turn/started confirms that the native task exists.5303+ if (context.nativeStartReady !== undefined) {5304+ yield* Deferred.await(context.nativeStartReady);
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge merged this49fa325
juliusmarminge closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed