Skip to content

Commit dffc6fb

Browse files
committed
Request raw Codex events again when resuming conversations
1 parent c385cdc commit dffc6fb

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎extensions/codex/src/app-server/protocol.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ export type CodexThreadStartParams = JsonObject & {
190190

191191
export type CodexThreadResumeParams = JsonObject & {
192192
threadId: string;
193+
experimentalRawEvents?: boolean;
193194
cwd?: string | null;
194195
runtimeWorkspaceRoots?: string[] | null;
195196
model?: string;

‎extensions/codex/src/app-server/run-attempt.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6347,6 +6347,7 @@ describe("runCodexAppServerAttempt", () => {
63476347
approvalsReviewer: "guardian_subagent",
63486348
sandbox: "danger-full-access",
63496349
serviceTier: "priority",
6350+
experimentalRawEvents: true,
63506351
});
63516352
const resumeRequest = requests.find((request) => request.method === "thread/resume");
63526353
const resumeRequestParams = resumeRequest?.params as Record<string, unknown> | undefined;

‎extensions/codex/src/app-server/thread-requests.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ export function buildThreadResumeParams(
277277
});
278278
return {
279279
threadId: options.threadId,
280+
// Raw completion receipts are a live subscription, not persisted thread state.
281+
// Re-enable them after reconnecting so native child results are not announced twice.
282+
experimentalRawEvents: true,
280283
...(options.cwd ? { cwd: options.cwd } : {}),
281284
...(options.appServer.sessionRoot
282285
? { runtimeWorkspaceRoots: [options.appServer.sessionRoot] }

0 commit comments

Comments
 (0)