diff --git a/codex-cli/src/utils/agent/agent-loop.ts b/codex-cli/src/utils/agent/agent-loop.ts index 8d99e46c..aaca48f3 100644 --- a/codex-cli/src/utils/agent/agent-loop.ts +++ b/codex-cli/src/utils/agent/agent-loop.ts @@ -543,22 +543,6 @@ export class AgentLoop { ); } else { turnInput = [...abortOutputs, ...input].map(stripInternalFields); - - // When response storage is disabled we have to maintain our own - // running transcript so that the next request still contains the - // full conversational history. We skipped the transcript update in - // the branch above – ensure we do it here as well. - if (this.disableResponseStorage) { - const newUserItems: Array = input.filter((it) => { - if (it.type === "message" && it.role === "system") { - return false; - } else if (it.type === "reasoning") { - return false; - } - return true; - }); - this.transcript.push(...newUserItems.map(stripInternalFields)); - } } this.onLoading(true);